tomcat总是运行一段几天之后死机,GC日志如下:
[code="java"]
Application time: 10.9037210 seconds
Total time for which application threads were stopped: 0.0019070 seconds
Application time: 63.4705310 seconds
447142.736: [GC [PSYoungGen: 515825K->7027K(517248K)] 1140480K->641618K(1565824K), 0.0211740 secs] [Times: user=0.03 sys=0.00, real=0.02 secs]
Total time for which application threads were stopped: 0.0237380 seconds
Application time: 0.0008020 seconds
Total time for which application threads were stopped: 0.0048850 seconds
Application time: 57.3291140 seconds
447200.095: [GC [PSYoungGen: 517235K->7034K(499456K)] 1151826K->654591K(1548032K), 0.0233490 secs] [Times: user=0.10 sys=0.01, real=0.02 secs]
Total time for which application threads were stopped: 0.0259740 seconds
Application time: 0.0005330 seconds
Total time for which application threads were stopped: 0.0015090 seconds
Application time: 0.0003870 seconds
Total time for which application threads were stopped: 0.0009830 seconds
Application time: 0.0001650 seconds
Total time for which application threads were stopped: 0.0009320 seconds
Application time: 0.0000790 seconds
Total time for which application threads were stopped: 0.0009570 seconds
Application time: 0.0001280 seconds
Total time for which application threads were stopped: 0.0009260 seconds
Application time: 0.0001270 seconds
Total time for which application threads were stopped: 0.0007940 seconds
Application time: 350.4612180 seconds
Total time for which application threads were stopped: 0.0070700 seconds
Application time: 17619.4182670 seconds
479708.875: [GC [PSYoungGen: 499450K->4193K(508352K)] 1147007K->658558K(1556928K), 0.0232460 secs]
[/code]
可以看出长时间没人访问,之后再GC就死了。
想了很久也想不出原因,清高人给个思路

tomcat之死
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- enet_java 2010-10-26 09:59关注
tomcat是什么版本呀?换换版本再试试吧,有些是tomcat自身的bug导致的。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报