Starting Ambari Matrics Collector: Error – There is insufficient memory for the Java Runtime Environment to continue

# su - ams
$ /usr/sbin/ambari-metrics-collector --config /etc/ambari-metrics-collector/conf start

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2442723328 bytes for committing reserved memory.
If more than 1 jvm is running then other will fail,
 for this check:
# sysctl -a | grep shmmax
kernel.shmmax = 1000000000
this isn bytes and 1 GB, so the shared value for RAM is 1 GB and no 
application can run in this, so increase the value atleast to the half 
of total ram:
# vi /etc/sysctl.conf
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
# sysctl -p (for reloading)
# sysctl -a | grep shmmax
kernel.shmmax = 68719476736
This should solve jvm issues.
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *