Wednesday, 20 April 2016

Cannot allocate memory/insufficient memory for the Java Runtime Environment to continue.

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f71a2000, 16084992, 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 16084992 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /var/lib/jenkins/jobs/subcontract/workspace/hs_err_pid10731.log

ERROR: Maven JVM terminated unexpectedly with exit code 1
Finished: FAILURE

solution :

increase the java memory maximum heap and initial heap

You can do this to the JAVA_OPTS variable in the bin/catalina.sh startup script.

JAVA_OPTS="-Xms128m -Xmx256m"

No comments:

Post a Comment