2015-10-29 94 views
0

突然間,我開始從集成測試用例中收到錯誤。使用Java 8,所以我添加了MAVEN_OPTS = -Xmx512m。但它沒有奏效。我在這裏錯過了什麼,如何修復它?它可以在本地機器上正常工作。Jenkins:內存不足問題

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: 
+1

該選項實際上是'-Xmx512m',是不是缺少'-'? –

+0

'''在那裏。這是一個錯字。讓我解決它。 –

回答

0

望着錯誤消息,它看起來像Java無法分配足夠的內存,即它不是Java的堆限制那的方式,而是沒有更多的可用內存由OS給予的Java。檢查機器是否內存不足。

+0

謝謝。我如何檢查在Ubuntu上? –

+0

@HimanshuYadav通常它是'...#free'或'...#top'。 –