SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for x649.4_M49.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8 Enterprise x649.4_M49.4 TS1M4
Microsoft Windows 8 Pro 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8 Pro x649.4_M49.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8.1 Enterprise x649.4_M49.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit9.4_M49.4 TS1M4
Microsoft Windows 8.1 Pro x649.4_M49.4 TS1M4
Microsoft Windows 109.4_M49.4 TS1M4
Microsoft Windows Server 20089.4_M49.4 TS1M4
Microsoft Windows Server 2008 R29.4_M49.4 TS1M4
Microsoft Windows Server 2008 for x649.4_M49.4 TS1M4
Microsoft Windows Server 2012 Datacenter9.4_M49.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter9.4_M49.4 TS1M4
Microsoft Windows Server 2012 R2 Std9.4_M49.4 TS1M4
Microsoft Windows Server 2012 Std9.4_M49.4 TS1M4
Windows 7 Enterprise 32 bit9.4_M49.4 TS1M4
Windows 7 Enterprise x649.4_M49.4 TS1M4
Windows 7 Home Premium 32 bit9.4_M49.4 TS1M4
Windows 7 Home Premium x649.4_M49.4 TS1M4
Windows 7 Professional 32 bit9.4_M49.4 TS1M4
Windows 7 Professional x649.4_M49.4 TS1M4
Windows 7 Ultimate 32 bit9.4_M49.4 TS1M4
Windows 7 Ultimate x649.4_M49.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.