0
我老是感到catalina.out
以下錯誤約5之後 - 第6小時的運轉我的應用程序:本地MMAP錯誤
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 503226 bytes for committing reserved memory.
An error report file with more information is saved as:
/tmp/hs_err_pid1.log
我使用Tomcat 8 AWS的Linux t2.medium實例中運行(通用) 。只有1個應用程序正在運行,根本沒有其他應用程序。 這是什麼問題?
這是一個完整pid log file
感謝
您正在使用大部分內存(3.8 GB),因此添加一些交換空間將有所幫助,可能就足夠了。 –
@Kayaman使用更大的實例。 4 GB這些天內存不是很多https://www.solid-run.com/product/cubox-i4x4/ –
很奇怪,CMIIW,堆大小(如果沒有配置)會默認爲1GB,對嗎?根據日誌,使用了3.8GB內存,如果堆只佔用了1GB,誰拿了2.8GB? JVM的哪一部分使用了它?還是JVM之外的另一個進程? – musicsquad