Zookeeper service heapsize is 10GB or more resulting in java.lang.OutOfMemoryError for various services
book
Article ID: 294621
calendar_today
Updated On:
Products
Services Suite
Issue/Introduction
Symptoms:
java.lang.OutOfMemoryError: Java heap space
Environment
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.
Resolution
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.