nGrinder学习笔记——关于ngrinder的性能

本文探讨了nGrinder的性能表现,指出比较不同版本的性能并不重要,且不应盲目推荐进程和线程数量。文章提到,过多的线程可能导致内存耗尽,建议根据实际情况调整进程数。同时,内存分配和网络条件也会影响测试结果,nGrinder后续将提供默认内存大小和优化参数以提升性能。
摘要由CSDN通过智能技术生成

要点总结:

1、不要比较nGrinder每个版本的性能,这并不值得。

2、不要试着推荐进程核线程数。

3、如果一个进程有过多的线程,可能会耗尽自己的内存,导致oom。

 

http://ngrinder.642.n7.nabble.com/Why-nGrinder3-0-performed-better-than-Grinder3-11-td71.html
有人问为什么nGrinder 3.0比nGrinder3.11表现得好。

The conclusion from what I observed from real deployment here is that we can not determine nGrinder performance in advance.

It seems that nGrinder threads on the single process run on the single core because of some synchronization issue. 

因为某些同步问题,单个进程上的ngrinder threads运行在单个(CPU)核上。
(I'm not sure.. but it seems like it.)
(不确定,但是看起来就是这样)


In this theory, if we specify only 1 process to be used, it wastes the remained cores.
理论上来说,如果我们指定只是用一个进程,这就浪费了剩下的(CPU)核。


This explained a lot. Your trial shows the significant performance differences b/w 1 and 2 cores, not b/w 2 ~ 4 cores.
这就可以解释了。在1核和2核之间有显著的性能差异,但是2到4核之间并没有显著的差异。

nGrinder use 1 process(ngrinder agent controller) when it does not perform the tests. If the test runs, at least 2 processes are running.

不执行测试的时候,ngrinder是用1个进 程(ngrinder的agent controller)如果运行测试,至少两个进程在运行。

So it can be distributed into 2 cores and does not interfere each. This can explain the reason of your performance test result

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值