Jmeter的吞吐量很低

8月 18, 2015 |

最近在玩Jmeter的时候发现测试的吞吐量一直很低,开始一直怀疑是tomcat配置问题,弄了一大半天才发现,使用GUI压力测试时,JMeter一直在GC,改成非GUI模式吞吐量就上去了,由于服务器和JMeter运行在同一个机子上,测试的吞吐量大概在500-1200/s。但是当执行的次数比较多的时候,后面失败的次数越来越多。
jmeter-n.cmd 是windows平台的非GUI的测试入口,跟上.JMX的测试用例配置文件就OK了。

jmeter-n.cmd ../my_test_case/test.jmx

以下是测试结果输出:

Creating summariser <summary>
Created the tree successfully using test.jmx
Starting the test @ Wed Aug 19 13:54:25 CST 2015 (1439963665073)
Waiting for possible shutdown message on port 4445
summary +6660 in 5s = 1363.1/s Avg: 17 Min: 1 Max:1627 Err: 0 (0.00%) Active: 75 Started: 200 Finished: 125
summary +3340 in 5s =  719.4/s Avg:  89 Min: 1 Max: 992 Err:  0 (0.00%) Active: 0 Started: 200 Finished: 200
summary = 10000 in 10s = 1049.3/s Avg:    41 Min:     1 Max:  1627 Err:     0 (0.00%)
Tidying up ...    @ Wed Aug 19 13:54:34 CST 2015 (1439963674644)
... end of run

Posted in: JMeter

Comments are closed.