当由jstat -gc -t监视时,Tomcat的gc时间戳会停止增加

时间:2014-03-21 15:48:43

标签: java tomcat garbage-collection jvm jstat

在oracle hotspot上运行tomcat 7.0.32 jdk 1.7.0_7我得到了这个奇特的输出。

我希望能够确定内存泄漏,因此我运行了jstat -gc -t 2000。起初一切看起来都合理。我每隔2秒获得一条新线。但在某些时候,时间戳列开始变得怪异。它在1秒后返回,然后在5秒后返回,然后是2,然后是7,直到它达到时间戳518058.9,最后它说出" Screwit。你有足够的数据儿子。去做吧。 Imma称之为一天。"

Werid?为什么会这样?我被迫重启了这个实例。

可能存在数据库错误并且c3p0 哭了DEADLOCK,但这不应该停止jvm报告gc利用率?对?实际上 - 不要停止报告,只是停止增加时间戳。

jstat输出:

Timestamp        S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC     YGCT    FGC    FGCT     GCT
   259712.9 11584.0 15424.0 9560.8  0.0   285056.0 160309.1  470016.0   163917.6  142912.0 123577.1   1494  123.712  17     31.547  155.259
   259715.1 11584.0 15424.0 9560.8  0.0   285056.0 160319.3  470016.0   163917.6  142912.0 123577.1   1494  123.712  17     31.547  155.259
   259717.1 11584.0 15424.0 9560.8  0.0   285056.0 160334.9  470016.0   163917.6  142912.0 123577.1   1494  123.712  17     31.547  155.259
....
   518016.3 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518018.0 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518023.7 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518025.8 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518026.7 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518029.9 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518031.1 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518034.2 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518036.4 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518037.3 21696.0 22080.0  0.0   15712.7 592064.0 433482.6  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518040.8 21696.0 22080.0  0.0   15712.7 592064.0 433502.5  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518043.1 21696.0 22080.0  0.0   15712.7 592064.0 433536.3  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518045.7 21696.0 22080.0  0.0   15712.7 592064.0 433631.9  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518050.1 21696.0 22080.0  0.0   15712.7 592064.0 433685.9  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518054.4 21696.0 22080.0  0.0   15712.7 592064.0 433766.8  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518056.1 21696.0 22080.0  0.0   15712.7 592064.0 433844.9  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518057.6 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
   518058.9 21696.0 22080.0  0.0   15712.7 592064.0 433920.0  527296.0   495141.6  140224.0 126562.4   1811  185.571  18     50.010  235.581
....

0 个答案:

没有答案