简体   繁体   English

詹金斯:内存不足问题

[英]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 . 使用Java 8,因此我添加了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. 查看错误消息,看来Java无法分配足够的内存,也就是说,这不是Java的堆限制,而是OS没有更多的内存可分配给Java。 Check that the machine is not running out of memory. 检查机器内存是否未耗尽。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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