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