Disabling Full GC (System)

If you use JMX to monitoring servers for a large installation, you should disable Full GC (system) on the cache server, Search and Activity Engine nodes to avoid a performance hit.

When monitoring using RMI, Full GC's can occur every hour or even every minute unless you disable them. You should set a flag that explicitly disables calls to System.gc() or Runtime.getRuntime().gc().

To disable these calls:

  1. In /usr/local/jive/voldemort/config/setenv, find the line export JAVA_OPTS="\ line.
  2. Add -XX:+DisableExplicitGC on a new line. export JAVA_OPTS="\ -XX:+DisableExplicitGC
  3. In /usr/local/jive/applications/{instance-name}/home/bin/instance, find the line export CUSTOM_OPTS="\
  4. Insert -XX:+DisableExplicitGC in the same line export CUSTOM_OPTS="-XX:+DisableExplicitGC ${CUSTOM_OPTS} ${JMX_OPTS}"