简体   繁体   中英

Jenkins: Out of memory issue

Suddenly I have started getting following error from integration test cases. Using Java 8 so I added MAVEN_OPTS = -Xmx512m . But it did not work. What am I missing here and how can I fix it? Between it works fine on local machine.

SUREFIRE-859: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c9800000, 54001664, 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 54001664 bytes for committing reserved memory.
# An error report file with more information is saved as:

Looking at the error message, it looks like Java was not able to allocate enough memory, ie it's not Java's heap limit that's in the way but rather no more memory available to be given to Java by OS. Check that the machine is not running out of memory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM