突然间,我开始从集成测试用例中收到以下错误。使用Java 8,我添加了MAVEN_OPTS = -Xmx512m
。但它没有用。我在这里缺少什么,我该如何解决?它在本地机器上工作正常。
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:
答案 0 :(得分:0)
查看错误消息,看起来Java无法分配足够的内存,即它不是Java的堆限制,而是没有更多的可用内存由OS提供给Java。检查机器是否内存不足。