小编use*_*796的帖子

Tomcat崩溃:Java Runtime Environment没有足够的内存来继续

我们正在运行一个Web应用程序,用户数量很少,大约7个,但显示图像的负载很高.最近我们升级到Java 6u43和Tomcat 6.036,经过一些使用(大约一周)tomcat服务崩溃.重启后,它可以运行几天,或者只是几个小时,然后再次崩溃.即使重新启动服务器后它再次崩溃,我们甚至看到它在活动10分钟后.

它总是在tomcat的bin文件夹中的hs_err_pid文件中使用相同的消息.请参阅下面的完整错误消息示例.它总是不足本机内存,主活动线程总是JavaThread"C2 CompilerThread1",但始终采用不同的方法.

我们运行的是Windows 2008 Service Pack 2,32位,2个CPU,3GB.对于tomcat xms设置为512KB和xmx为1536KB.没有其他具体设置.当它崩溃时,Java堆远远低于1536的完全使用率.

任何想法,建议这可能是什么?

(在tomcat升级之前我们使用tomcat 6.014和Java 6u02很长时间没有任何问题)

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 629784 bytes for Chunk::new
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or …
Run Code Online (Sandbox Code Playgroud)

java memory tomcat native

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

memory ×1

native ×1

tomcat ×1