Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java JVM/App只是无限期地暂停_Java_Garbage Collection_Jvm - Fatal编程技术网

Java JVM/App只是无限期地暂停

Java JVM/App只是无限期地暂停,java,garbage-collection,jvm,Java,Garbage Collection,Jvm,我遇到了一个奇怪的问题,我的应用程序只是暂停。我已经查看了CPU消耗情况,eden&Teured heap完全低于最大限制 sudo /usr/java/jdk1.7.0_60/bin/jstat -gc 19656 10000 S0C S1C S0U S1U EC EU OC OU PC PU YGC YGCT FGC FGCT GCT 273024.0 273024.

我遇到了一个奇怪的问题,我的应用程序只是暂停。我已经查看了CPU消耗情况,eden&Teured heap完全低于最大限制

sudo /usr/java/jdk1.7.0_60/bin/jstat -gc 19656 10000
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC     YGCT    FGC    FGCT     GCT
273024.0 273024.0  0.0   47919.3 2184576.0 457104.3 5461376.0  2920470.4  39932.0 23950.2   1094  926.334  348   338.201 1264.535
273024.0 273024.0  0.0   47919.3 2184576.0 457172.3 5461376.0  2920470.4  39932.0 23950.2   1094  926.334  348   338.201 1264.535
但在应用程序卡住之前,我总是在gc输出中观察到一系列新的集合(下面的日志消息):

24676.082: [GC24676.082: [ParNew
Desired survivor size 139788288 bytes, new threshold 1 (max 6)
- age   1:  178588280 bytes,  178588280 total
: 2184576K->273024K(2457600K), 0.2795420 secs] 4892724K->2981179K(7918976K), 0.2797780 secs] [Times: user=1.11 sys=0.00, real=0.28 secs]
 CMS: abort preclean due to time 24679.377: [CMS-concurrent-abortable-preclean: 5.784/6.654 secs] [Times: user=12.64 sys=3.47, real=6.65 secs]
24679.378: [GC[YG occupancy: 487069 K (2457600 K)]24679.378: [Rescan (parallel) , 0.2062950 secs]24679.584: [weak refs processing, 0.0008070 secs]24679.585: [scrub string table, 0.0002830 secs] [1 CMS-remark: 2708155K(5461376K)] 3195224K(7918976K), 0.2075960 secs] [Times: user=0.82 sys=0.00, real=0.21 secs]
24679.585: [CMS-concurrent-sweep-start]
24680.597: [CMS-concurrent-sweep: 1.006/1.012 secs] [Times: user=1.81 sys=0.00, real=1.01 secs]
24680.597: [CMS-concurrent-reset-start]
24680.617: [CMS-concurrent-reset: 0.020/0.020 secs] [Times: user=0.03 sys=0.00, real=0.02 secs]
24734.856: [GC24734.856: [ParNew
Desired survivor size 139788288 bytes, new threshold 6 (max 6)
- age   1:    7286744 bytes,    7286744 total
: 2457600K->198236K(2457600K), 0.4687370 secs] 5165750K->3118706K(7918976K), 0.4689730 secs] [Times: user=1.78 sys=0.00, real=0.47 secs]
24793.336: [GC24793.336: [ParNew
Desired survivor size 139788288 bytes, new threshold 6 (max 6)
- age   1:    7275368 bytes,    7275368 total
- age   2:    6778992 bytes,   14054360 total
: 2382812K->50896K(2457600K), 0.1408800 secs] 5303282K->2971366K(7918976K), 0.1411080 secs] [Times: user=0.56 sys=0.00, real=0.14 secs]
24859.251: [GC24859.251: [ParNew
Desired survivor size 139788288 bytes, new threshold 6 (max 6)
- age   1:    6916184 bytes,    6916184 total
- age   2:    6789648 bytes,   13705832 total
- age   3:    6773040 bytes,   20478872 total
: 2235472K->32310K(2457600K), 0.1847690 secs] 5155942K->2952781K(7918976K), 0.1850020 secs] [Times: user=0.71 sys=0.00, real=0.18 secs]
24932.033: [GC24932.033: [ParNew
Desired survivor size 139788288 bytes, new threshold 6 (max 6)
- age   1:    6150464 bytes,    6150464 total
- age   2:    6514336 bytes,   12664800 total
- age   3:    6783960 bytes,   19448760 total
- age   4:    6769808 bytes,   26218568 total
: 2216886K->38073K(2457600K), 0.2244340 secs] 5137357K->2958543K(7918976K), 0.2246640 secs] [Times: user=0.89 sys=0.00, real=0.22 secs]
24994.753: [GC24994.754: [ParNew
Desired survivor size 139788288 bytes, new threshold 6 (max 6)
- age   1:    5031544 bytes,    5031544 total
- age   2:    5847368 bytes,   10878912 total
- age   3:    6509216 bytes,   17388128 total
- age   4:    6781200 bytes,   24169328 total
- age   5:    6768376 bytes,   30937704 total
: 2222649K->47919K(2457600K), 0.2667860 secs] 5143119K->2968389K(7918976K), 0.2669990 secs] [Times: user=1.06 sys=0.00, real=0.27 secs]

你检查过烫发剂了吗?我注意到您正在使用CMS。我认为CMS不会默认扫描烫发空间。

是的,这几乎是限制的一半