web 项目压力测试一开始就宕机,后台显示内存溢出

open_China001 发布于 2013/09/07 13:14
阅读 511
收藏 0
891.980: [CMS-concurrent-mark-start]
891.982: [Full GC 891.982: [CMS893.697: [CMS-concurrent-mark: 1.713/1.716 secs] [Times: user=1.72 sys=0.00, real=1.72 secs]
 (concurrent mode failure): 1310719K->1310719K(1310720K), 5.5709980 secs] 1835007K->1835001K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 5.5711440 secs] [Times: user=5.57 sys=0.00, real=5.57 secs]
897.554: [Full GC 897.554: [CMS: 1310719K->1310719K(1310720K), 3.7470990 secs] 1835007K->1835005K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7472330 secs] [Times: user=3.74 sys=0.01, real=3.75 secs]
901.303: [Full GC 901.303: [CMS: 1310720K->1310720K(1310720K), 3.7539510 secs] 1835007K->1835006K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7540880 secs] [Times: user=3.75 sys=0.00, real=3.76 secs]
905.057: [Full GC 905.058: [CMS: 1310720K->1310720K(1310720K), 3.7437010 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7438100 secs] [Times: user=3.74 sys=0.00, real=3.74 secs]
908.802: [GC [1 CMS-initial-mark: 1310720K(1310720K)] 1835007K(1835008K), 0.3908810 secs] [Times: user=0.39 sys=0.00, real=0.39 secs]
909.193: [CMS-concurrent-mark-start]
909.193: [Full GC 909.193: [CMS910.902: [CMS-concurrent-mark: 1.708/1.709 secs] [Times: user=1.71 sys=0.00, real=1.71 secs]
 (concurrent mode failure): 1310720K->1310720K(1310720K), 5.4466190 secs] 1835008K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 5.4467490 secs] [Times: user=5.45 sys=0.00, real=5.45 secs]
914.641: [Full GC 914.641: [CMS: 1310720K->1310720K(1310720K), 3.7333450 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7334870 secs] [Times: user=3.73 sys=0.00, real=3.73 secs]
918.375: [Full GC 918.401: [CMS: 1310720K->1310720K(1310720K), 3.7385770 secs] 1835008K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7387430 secs] [Times: user=3.74 sys=0.00, real=3.77 secs]
922.140: [Full GC 922.140: [CMS: 1310720K->1310720K(1310720K), 3.7321340 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7322390 secs] [Times: user=3.73 sys=0.01, real=3.73 secs]
925.873: [GC [1 CMS-initial-mark: 1310720K(1310720K)] 1835007K(1835008K), 0.3899790 secs] [Times: user=0.39 sys=0.00, real=0.39 secs]
926.263: [CMS-concurrent-mark-start]
926.272: [Full GC 926.272: [CMS927.967: [CMS-concurrent-mark: 1.701/1.704 secs] [Times: user=1.70 sys=0.00, real=1.70 secs]
 (concurrent mode failure): 1310720K->1310720K(1310720K), 5.4555110 secs] 1835008K->1835005K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 5.4556750 secs] [Times: user=5.45 sys=0.00, real=5.45 secs]
931.728: [Full GC 931.728: [CMS: 1310720K->1310720K(1310720K), 3.7428290 secs] 1835008K->1835004K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7429590 secs] [Times: user=3.74 sys=0.00, real=3.75 secs]
935.472: [GC [1 CMS-initial-mark: 1310720K(1310720K)] 1835007K(1835008K), 0.4025640 secs] [Times: user=0.40 sys=0.00, real=0.40 secs]
935.875: [CMS-concurrent-mark-start]
935.875: [Full GC 935.876: [CMS937.585: [CMS-concurrent-mark: 1.708/1.709 secs] [Times: user=1.71 sys=0.00, real=1.71 secs]
 (concurrent mode failure): 1310720K->1310719K(1310720K), 5.4484590 secs] 1835007K->1835006K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 5.4485800 secs] [Times: user=5.45 sys=0.00, real=5.45 secs]
941.325: [Full GC 941.325: [CMS: 1310719K->1310719K(1310720K), 3.7337000 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7338300 secs] [Times: user=3.73 sys=0.00, real=3.73 secs]
945.060: [Full GC 945.060: [CMS: 1310720K->1310720K(1310720K), 3.7384930 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7386320 secs] [Times: user=3.74 sys=0.00, real=3.74 secs]
948.799: [Full GC 948.799: [CMS: 1310720K->1310720K(1310720K), 3.7342050 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7343080 secs] [Times: user=3.74 sys=0.00, real=3.74 secs]
952.534: [Full GC 952.534: [CMS: 1310720K->1310720K(1310720K), 3.7649180 secs] 1835007K->1834976K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7650250 secs] [Times: user=3.76 sys=0.01, real=3.76 secs]
956.300: [Full GC 956.300: [CMS: 1310720K->1310720K(1310720K), 3.8010550 secs] 1835007K->1834991K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.8011770 secs] [Times: user=3.80 sys=0.00, real=3.80 secs]
960.102: [Full GC 960.102: [CMS: 1310720K->1310720K(1310720K), 3.7413400 secs] 1835007K->1834875K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7414790 secs] [Times: user=3.75 sys=0.00, real=3.74 secs]
963.844: [GC [1 CMS-initial-mark: 1310720K(1310720K)] 1834876K(1835008K), 0.3899080 secs] [Times: user=0.39 sys=0.00, real=0.39 secs]
964.234: [CMS-concurrent-mark-start]
964.238: [Full GC 964.238: [CMS965.942: [CMS-concurrent-mark: 1.705/1.708 secs] [Times: user=1.71 sys=0.00, real=1.70 secs]
 (concurrent mode failure): 1310720K->1310720K(1310720K), 5.4509070 secs] 1835008K->1834954K(1835008K), [CMS Perm : 156011K->156011K(524288K)], 5.4510500 secs] [Times: user=5.45 sys=0.00, real=5.45 secs]
969.690: [Full GC 969.690: [CMS: 1310720K->1310720K(1310720K), 3.7459820 secs] 1835007K->1834982K(1835008K), [CMS Perm : 156011K->156010K(524288K)], 3.7461460 secs] [Times: user=3.75 sys=0.00, real=3.75 secs]
973.437: [Full GC 973.437: [CMS: 1310720K->1310720K(1310720K), 3.7315550 secs] 1835007K->1835001K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7316640 secs] [Times: user=3.73 sys=0.00, real=3.73 secs]
977.170: [Full GC 977.170: [CMS: 1310720K->1310720K(1310720K), 3.7532870 secs] 1835008K->1835004K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7534180 secs] [Times: user=3.76 sys=0.00, real=3.75 secs]
980.924: [Full GC 980.924: [CMS (concurrent mode failure): 1310720K->1310719K(1310720K), 3.7449150 secs] 1835007K->1835006K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7450260 secs] [Times: user=3.74 sys=0.01, real=3.75 secs]
984.670: [Full GC 984.670: [CMS: 1310720K->1310719K(1310720K), 3.7355380 secs] 1835007K->1835006K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7356670 secs] [Times: user=3.74 sys=0.00, real=3.73 secs]
988.407: [Full GC 988.407: [CMS: 1310719K->1310719K(1310720K), 3.7309240 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7310360 secs] [Times: user=3.73 sys=0.00, real=3.73 secs]
992.139: [Full GC 992.139: [CMS: 1310719K->1310719K(1310720K), 3.7304400 secs] 1835007K->1835007K(1835008K), [CMS Perm : 156010K->156010K(524288K)], 3.7305630 secs] [Times: user=3.73 sys=0.00, real=3.72 secs]
995.870: [Full GC 995.870: [CMS
加载中
0
ThinkingH
ThinkingH
启动参数 加上 
0
ThinkingH
ThinkingH
-XX:+HeapDumpOnOutOfMemoryError ,然后用jdk自带的jvisualvm.exe分析一下
0
open_China001
open_China001

引用来自“Thinking8”的答案

-XX:+HeapDumpOnOutOfMemoryError ,然后用jdk自带的jvisualvm.exe分析一下
大概是什么问题呢?
0
ThinkingH
ThinkingH

引用来自“open_China001”的答案

引用来自“Thinking8”的答案

-XX:+HeapDumpOnOutOfMemoryError ,然后用jdk自带的jvisualvm.exe分析一下
大概是什么问题呢?
1、内存分配的太低
0
ThinkingH
ThinkingH

引用来自“Thinking8”的答案

引用来自“open_China001”的答案

引用来自“Thinking8”的答案

-XX:+HeapDumpOnOutOfMemoryError ,然后用jdk自带的jvisualvm.exe分析一下
大概是什么问题呢?
1、内存分配的太低

2、内存泄漏

嚓,ctrl+回车是tmd提交功能,还不太习惯。。。

0
ThinkingH
ThinkingH

引用来自“Thinking8”的答案

引用来自“Thinking8”的答案

引用来自“open_China001”的答案

引用来自“Thinking8”的答案

-XX:+HeapDumpOnOutOfMemoryError ,然后用jdk自带的jvisualvm.exe分析一下
大概是什么问题呢?
1、内存分配的太低

2、内存泄漏

嚓,ctrl+回车是tmd提交功能,还不太习惯。。。

-Xmx1024m -Xms1024m

生产环境下,这两个参数尽量配置成相同的,具体给你的应用分配多大内存,看你的应用数量而定

返回顶部
顶部