On this page
This page provides instructions for changing the Java heap space (Xmx) for both Cassandra and Magic Collaboration Studio on Linux and Windows, respectively.
To configure Java heap space for Cassandra on Linux, you must set the variables MAX_HEAP_SIZE and HEAP_NEWSIZE which are commented by default in the file cassandra-env.sh. The location of the file cassandra-env.sh depends on the type of Cassandra installation.
Uncomment MAX_HEAP_SIZE, HEAP_NEWSIZE variables and adjust MAX_HEAP_SIZE manually. Otherwise, Cassandra will calculate the heap size based on the system's memory using the following formula:
max(min (1/2 ram), 1024MB), min(1/4 ram, 8GB)) |
The formula details are outlined below:
We recommend setting the min (-Xms) and max (-Xmx) heap to the same value in the Cassandra document to avoid pausing the GC during resizing.
To change the value using the Registry Editor
1. Run regedit from the command line.
2. Browse for the key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\cassandra\Parameters\Java.
3. Right-click Options and select Modify.... You can then change the min and max heap size from -Xms and -Xmx.
To change the value using the Registry Editor
1. Run regedit from the command line.
2. Browse for the key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\Magic Collaboration Studio\Parameters\Java.
3. Right-click JvmMx and select Modify....
4. Select Base to Decimal and change the value. The value is in megabytes (mb).
Heap space for Web Application Platform is handled by Tomcat.
To change the value using the Registry Editor
1. Run regedit from the command line.
2. Browse for the key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\WebApp\Parameters\Java.
3. Right-click JvmMx and select Modify....
4. Select Base to Decimal and change the value. The value is in megabytes (mb).