Pivotal Knowledge Base

Follow

Zookeeper service heapsize is 10GB or more resulting in java.lang.OutOfMemoryError for various services

Environment

  • PHD 1.x
  • PHD 2.0.0.0

Symptom

java.lang.OutOfMemoryError: Java heap space

Cause

By default ICM does not configure Zookeeper heapsize.  Zookeeper will use default JVM max heapsize which is one fourth system memory.  If the system has 64GB of memory then zookeeper XMX will be 16GB.  

Fix

If the /etc/gphd/zookeeper/conf/java.env does not exist then create it.  Add the following entry to set zookeeper max heapsize to 2048MB.  Then restart the zookeeper service.

export JVMFLAGS="-Xmx2048m"

 

Comments

Powered by Zendesk