Problem Note 64661: A Java heap space exception occurs while you are applying a SAS® security update via the install.bat file on a Microsoft Windows system
When you apply SAS security updates for SAS® Foundation on a Windows system, an error might occur while you are running the install.bat file. An exception similar to the following then appears:
E:\SAS_Backup>install.bat "e:\SAS_Install\SASHome"
Beginning installation...
Beginning pre-execute processing (may take a few minutes)...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.String.<init>(String.java:166)
at java.io.WinNTFileSystem.resolve(WinNTFileSystem.java:267)
at java.io.File.<init>(File.java:324)
at com.sas.tools.installs.it.plugins.WriteValidationFile.<init>(WriteValidationFile.java:93)
at com.sas.tools.installs.it.Controller.getWriteValidationInstance(Controller.java:2826)
at com.sas.tools.installs.it.Controller.initializePlugins(Controller.java:2813)
at com.sas.tools.installs.it.Controller.initializeInstallAtIndex(Controller.java:1441)
at com.sas.tools.installs.it.Controller.setupInstallationForArgs(Controller.java:672)
at com.sas.tools.installs.it.security.update.InstallToolConnector.initInstallTool(InstallToolConnector.java:693)
at com.sas.tools.installs.it.security.update.InstallToolConnector.preExecute(InstallToolConnector.java:306)
at com.sas.tools.installs.it.security.update.InstallToolConnector.runInstallTool(InstallToolConnector.java:256)
at com.sas.tools.installs.it.security.update.InstallToolConnector.install(InstallToolConnector.java:214)
at com.sas.tools.installs.it.security.update.Update.runInstallTool(Update.java:76)
at com.sas.tools.installs.it.security.update.Update.main(Update.java:39)
The workaround for this issue is to edit the install.bat file to add the Java Virtual Machine (JVM) options -Xmx1G -Xms1G to the following line:
@rem Now invoke the Install Tool wrapper to run the install.
"%JAVA%" -jar "%JAR%" "%SASHOME%"
After the line looks like the following, save the file:
"%JAVA%" -Xmx1G -Xms1G -jar "%JAR%" "%SASHOME%"
Operating System and Release Information
SAS System | Base SAS | Microsoft® Windows® for x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8 Enterprise x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8 Pro 32-bit | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8 Pro x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 8.1 Pro x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows 10 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 R2 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2008 for x64 | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 Datacenter | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 R2 Std | 9.4_M4 | | 9.4 TS1M4 | |
Microsoft Windows Server 2012 Std | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Enterprise 32 bit | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Enterprise x64 | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Home Premium 32 bit | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Home Premium x64 | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Professional 32 bit | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Professional x64 | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Ultimate 32 bit | 9.4_M4 | | 9.4 TS1M4 | |
Windows 7 Ultimate x64 | 9.4_M4 | | 9.4 TS1M4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When you apply a SAS security update by using the install.bat file, you see the error "Exception in thread 'main' java.lang.OutOfMemoryError: Java heap space."
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2019-11-08 14:44:24 |
Date Created: | 2019-08-21 09:59:44 |