Support Article
Pega nodes stop working with errors
SA-57421
Summary
Pega nodes stop working with errors.
Error Messages
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f6f89c30000, 12288, 0) failed; error='Cannot allocate memory' (errno=12)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory.
# An error report file with more information is saved as:
# [logfile path]
Steps to Reproduce
Unknown.
Root Cause
A defect or configuration issue in the operating environment:
The following JVM options are used:
export MEMORY_OPTS='-Xms6144m -Xmx6144m -XX:MaxMetaspaceSize=1024m -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:+PrintReferenceGC -Xloggc:[LOCATION]/gc.log -XX:+UseG1GC -XX:MaxGCPauseMillis=350 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=50M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs' These options are used on an environment with a total memory of 8GB, and with a 6 GB object heap (Xmx6144m) and an 1 GB metaspace (-XX:MaxMetaspaceSize=1024m). Thus, only 1 GB of RAM remains to be used by the operating system and the JVM native memory (memory used by the JVM to run the JVM itself). This memory is not sufficient and the JVM is unable to allocate memory for the native operations.
Resolution
Perform the following local-change:
Reduce the heap size to 4 GB, allowing more memory allocation by the operating system for the JVM native tasks.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.