The Java Virtual Machine (JVM) has restrictions on the total amount of memory available on the heap. The are two settings which affect the amount of memory which is available:
- Initial heap size (-Xms)
- Maximum heap size (-Xmx)
Starting with netX Studio CDT V1.0910, the available memory size settings have been set to reasonable defaults:
- Initial heap size is 512MB
- Maximum heap size is 2GB
For older versions of netX Studio CDT, you can increase the amount of available memory by editing the netX Studio.ini file located at the root installation folder, e.g. C:\Program Files (x86)\Hilscher GmbH\netX Studio CDT\netX Studio.ini
Add the options -Xms512m
and -Xmx2048m
after -vmargs
:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20150204-1316
-name
netX Studio CDT
-data
@noDefault
-vmargs
-Duser.language=en
-Duser.country=US
-Xms512m
-Xmx2048m
This will set the initial heap size to 512MB and the maximum heap size to 2GB.
Depending on your requirements and the available memory on your system, you may wish to increase those values. The default size for these values is measured in bytes. Append the letter:
- 'm' or 'M' to indicate megabytes, e.g. 1024m
- 'g' or 'G' to indicate gigabytes, e.g. 4g