nGrinder压测更消耗流量???

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

nGrinder压测更消耗流量???

leesh
测试环境:Nginx做web服务器,返回静态文件大小30K,Nginx配置文件压缩。
场景一:nGrinder模拟10用户压测,服务器端网络流量(send)消耗80M,CPU都较小<10
场景二:LR模拟10用户压测同样的环境,服务器端网络流量(send)只有5M,CPU都较小<10
麻烦大神分析下啥原因嘞?
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

Mavlarn

ngrinder是由controller和agent构成,他们之间需要交换数据,包括agent运行脚本时的运行状态、统计信息和运行的log,都需要发送到controller端。log是在运行完成后压缩打包,只发送2M的日志(每个进程)。

至于为什么会相差那么多,因为我们没有专门做过流量的对比测试,我也不确定会相差多少。

你可以大概算一下,看ngrinder和LR测试下,共发送的请求数(虽然模拟用户数一样,实际tps和测试数量可能不一样),nginx压缩发送静态文件后的大小等。然后根据这些数据再看一下。

 

-----Original Message-----
From: "leesh [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-11-20 (星期四) 18:51:31
Subject: nGrinder压测更消耗流量???

测试环境:Nginx做web服务器,返回静态文件大小30K,Nginx配置文件压缩。
场景一:nGrinder模拟10用户压测,服务器端网络流量(send)消耗80M,CPU都较小<10
场景二:LR模拟10用户压测同样的环境,服务器端网络流量(send)只有5M,CPU都较小<10
麻烦大神分析下啥原因嘞?


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/nGrinder-tp1672.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

leesh
应该是脚本没有想LR那样模拟特定浏览器发送请求;能否给一个加请求报文head(Accept-Encoding,User-Agent等信息)的例子
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

Mavlarn

我们有一个脚本录制工具,是一个java web start工具,但是,服务器端给停掉了。用这个录制工具是怎么录制header信息的。

你看一下下面的链接,里面有截屏能看到怎么设置header。

http://www.cubrid.org/wiki_ngrinder/entry/recorder-recording-guide 


如果想用这个recorder工具,可以下载源码来运行


 

-----Original Message-----
From: "leesh [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-12-02 (星期二) 12:17:27
Subject: RE: nGrinder压测更消耗流量???

应该是脚本没有想LR那样模拟特定浏览器发送请求;能否给一个加请求报文head(Accept-Encoding,User-Agent等信息)的例子


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/nGrinder-tp1672p1688.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

leesh
recorder工具下载不了报404,地址是http://ngrinder-demo.nhnopensource.org/jnlp/recorder/ngrinder-recorder.jnlp
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

Mavlarn

是,这个应用给停掉了。

 

-----Original Message-----
From: "leesh [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-12-02 (星期二) 18:21:51
Subject: RE: nGrinder压测更消耗流量???

recorder工具下载不了报404,地址是http://ngrinder-demo.nhnopensource.org/jnlp/recorder/ngrinder-recorder.jnlp


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/nGrinder-tp1672p1690.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

leesh
那recorder源码可以从哪里下载呢?网上搜了一圈都没找到
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder压测更消耗流量???

Mavlarn

https://github.com/naver/ngrinder-recorder

 

-----Original Message-----
From: "leesh [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-12-03 (星期三) 10:27:32
Subject: RE: nGrinder压测更消耗流量???

那recorder源码可以从哪里下载呢?网上搜了一圈都没找到


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/nGrinder-tp1672p1692.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML