Instructions to set Ignite PI Stack Size
The following error in Ignite PI indicates an out of memory (RAM) issue on the Ignite PI Server machine. This KB article describes how to alleviate this problem by reducing the stack size used by Ignite.
Error: No buffer space available
or
java.lang.OutOfMemoryError: unable to create new native thread
Windows Installs
Ignite 8.1 and below:
1. Edit <IGNITE PI INSTALL DIR>\iwc\tomcat\bin\catalina.bat
a. Search for the line: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
b. Update the line to: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Xss128k
2. Edit <IGNITE PI INSTALL DIR>\iwc\tomcat\bin\service.bat
a. Search for the line containing:
--JvmMs %MIN_HEAP_MEMORY_IN_HEX% --JvmMx %MAX_HEAP_MEMORY_IN_HEX%
or
--JvmMs 0x080 --JvmMx 0x200
b. Add the following to the end of the line: --JvmSs 0x080
Continue with these steps for all Ignite versions:
3. Remove the Ignite PI Server service:
a. Open a command window and change directory to <IGNITE PI INSTALL DIR>
b. Run file: removeWindowsService.bat
4. Create the Ignite PI Server service:
a. In the same command window, run the file: createWindowsService.bat
Note: it may take a couple of minutes for Ignite PI to complete its startup.
5. Open Ignite PI in a browser.
Notes:
* If Ignite PI does not open, you may need to reboot the server to reset memory on the machine.
* In addition, an optional improvement is to set the Memory Performance options on the Windows server:
1. Open the System Properties window (right-click on My Computer and choose Properties).
2. Click the Advanced tab.
3. In the Performance section, click the Settings button (opens the Performance Options window).
4. Click the Advanced tab.
5. In the Memory Usage section, change the setting to “Programs”.
6. Reboot the server.
.jpg)
UNIX/Linux Installs
1. Edit <IGNITE PI INSTALL DIR>/iwc/tomcat/bin/catalina.sh
a. Search for the line: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
b. Update the line to: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Xss128k
2. Restart the Ignite PI Server:
a. Run <IGNITE PI INSTALL DIR>/iwc/shutdown.sh
b. Run <IGNITE PI INSTALL DIR>/iwc/startup.sh
Note: it may take a couple of minutes for Ignite PI to complete its startup.
3. Open Ignite PI in a browser.