Increase Ignite Java Heap Memory
If monitoring a large number of instances, it may be necessary to increase the amount of heap memory that is allocated to Ignite. By default, Ignite will take a minimum of 128MB but is allowed to grow to 512MB.
Note: if you are seeing either of the following errors in the Ignite log, then heap memory is not the issue, and you should follow the instructions in http://support.confio.com/kb/1543
Error: No buffer space available
or
java.lang.OutOfMemoryError: unable to create new native thread
To determine what the Ignite heap memory setting should be for your Ignite PI Server, refer to the following article:
Windows Instructions (for Ignite PI Server running as a Windows service)
1. Edit the file iwc\tomcat\ignite_config\idc\server.properties
2a. Ignite 8.2 and above: Update the maximum heap setting (the default is 512, which means 512MB):
windows.service.java.max.heap.size=<new value>
- For 32-bit and 64-bit JRE's, the value is specified in decimal without the units. For example:
- Set it to 1024 to increase the maximum to 1GB (this is safe for 32-bit JRE's)
- Set it to 2048 to increase the maximum to 2GB (only go above 1228 with 64-bit JRE's
2b. Ignite 8.1 and below: Update the maximum heap setting (the default is "0x0200", which is in hexadecimal and means 512MB):
windows.service.java.max.heap.size.in.hex=<new value>
- For 32-bit JRE's (which is the default), the value is specified in hexadecimal. For example:
- Set it to 0x300 to increase the maximum to 756MB.
- Set it to 0x400 to increase the maximum to 1GB.
- For 64-bit JRE's, the value is specified in decimal without the units. This may seem odd given that the property name says "in.hex", but a decimal value is needed in this case. For example:
- Set it to 1024 to increase the maximum to 1GB.
- Set it to 2048 to increase the maximum to 2GB.
3. Recreate the Ignite PI Server service by running 2 batch files that were installed with Ignite PI:
Unix/Linux + Windows Instructions (for Ignite PI Server run from a command line)
- Edit the file iwc\tomcat\ignite_config\idc\server.properties
- Update the following setting (the default is "512m" which means 512MB):
java.max.heap.size=<new value>
- Set it to 756m to increase the maximum to 756MB.
- Set it to 1024m to increase the maximum to 1GB.
- Restart the Ignite PI Server by running 2 scripts that were installed with Ignite PI:
- shutdown (.bat for Windows, .sh for Unix/Linux)
- startup (.bat for Windows, .sh for Unix/Linux)