How to increase storage node heap size in JON for nodes installed on Linux machine?
Environment
- Red Hat JBoss Operations Network (ON)
- 3.2
- 3.3
- JBoss ON Storage Node installed on Linux OS;
Issue
- An alert occurs on JON :
increase the storage node Heap. How to deal with this alert ? - How to increase storage node heap size in JON 3.2.0?
- Can you provide me with the recommended memory settings for rhq storage and how to configure this?
- While browsing the JON portal, we feel its very very slow and showing following High Heap Usage alert for Storage node.
Increase the storage node heap.If you can not increase the heap or if you continue receiving alert then deploy another storage node.
Resolution
-
As per the JON 3.2 documentation, there are four alerts pre-defined for every storage node, one of which is the alert for High heap usage.
-
According to Table 21. Storage Resources for Alerts in the above link, for the alert-High Heap Usage the area to be addressed is the heap size values in the storage node JVM configuration.
-
Suggested way of changing memory settings for storage nodes is using JBoss ON UI:
JBoss ON UI -> Administration -> Storage Nodes -> select a Storage Node -> change
Heap SizeinStorage Node Specific Settingssection.
Alternatively, edit the heap_max value in the file <RHQ_SERVER_HOME>/rhq-storage/conf/cassandra-jvm.properties. For example, set the heap_max and heap_new properties to a higher value:
heap_min=-Xms1024M
heap_max=-Xmx1024M
heap_new=-Xmn384M
- Save
cassandra-jvm.propertiesfile and restart the storage node to take effect the new configuration changes.
$ ./rhqctl stop --storage
$ ./rhqctl start --storage
Note: Red Hat Document Configuring JBoss ON Servers, Agents and Storage Nodes - 3.6. Server Tuning for Large Numbers of Agents incorrectly suggests modification of the rhq-storage.properties file in order to change storage node's heap size. This has been reported to JBoss ON Documentation team and it will be fixed in a future releases of JBoss ON.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.