liyoukebit 发表于 2006-12-4 22:42:48

大家帮忙分析一下web服务器情况

<P>图片为测试结果统计图,通过Jmeter三个客户端分别发起100个线程,模拟不同的用户,也就是说理想状态应该同时有300个连接。但是统计web服务器的数据如下</P>
<P>IP地址和连接数(可见图)</P>
<P>22:10:51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>22:10:53&nbsp;192.9.100.220&nbsp;6&nbsp;192.9.100.21&nbsp;3&nbsp;&nbsp;<BR>22:10:55&nbsp;192.9.100.220&nbsp;6&nbsp;192.9.100.21&nbsp;6&nbsp;&nbsp;<BR>22:10:57&nbsp;192.9.100.220&nbsp;8&nbsp;192.9.100.21&nbsp;45&nbsp;192.9.100.42&nbsp;6<BR>22:10:59&nbsp;192.9.100.220&nbsp;9&nbsp;192.9.100.21&nbsp;19&nbsp;192.9.100.42&nbsp;7<BR>22:11:01&nbsp;192.9.100.220&nbsp;9&nbsp;192.9.100.21&nbsp;14&nbsp;192.9.100.42&nbsp;7<BR>22:11:04&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;6&nbsp;192.9.100.42&nbsp;7<BR>22:11:06&nbsp;192.9.100.220&nbsp;9&nbsp;192.9.100.21&nbsp;6&nbsp;192.9.100.42&nbsp;8<BR>22:11:08&nbsp;192.9.100.220&nbsp;13&nbsp;192.9.100.21&nbsp;9&nbsp;192.9.100.42&nbsp;7<BR>22:11:10&nbsp;192.9.100.220&nbsp;9&nbsp;192.9.100.21&nbsp;10&nbsp;192.9.100.42&nbsp;10<BR>22:11:12&nbsp;192.9.100.220&nbsp;11&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;11<BR>22:11:14&nbsp;192.9.100.220&nbsp;11&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;13<BR>22:11:17&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;12&nbsp;192.9.100.42&nbsp;17<BR>22:11:19&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;13&nbsp;192.9.100.42&nbsp;21<BR>22:11:21&nbsp;192.9.100.220&nbsp;18&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;20<BR>22:11:23&nbsp;192.9.100.220&nbsp;19&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;23<BR>22:11:25&nbsp;192.9.100.220&nbsp;13&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;23<BR>22:11:27&nbsp;192.9.100.220&nbsp;15&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;23<BR>22:11:30&nbsp;192.9.100.220&nbsp;18&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;23<BR>22:11:32&nbsp;192.9.100.220&nbsp;14&nbsp;192.9.100.21&nbsp;16&nbsp;192.9.100.42&nbsp;17<BR>22:11:34&nbsp;192.9.100.220&nbsp;14&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:36&nbsp;192.9.100.220&nbsp;14&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:38&nbsp;192.9.100.220&nbsp;14&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:40&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:42&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:44&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:47&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:49&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:51&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:53&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:55&nbsp;192.9.100.220&nbsp;10&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:57&nbsp;192.9.100.220&nbsp;9&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;17<BR>22:11:59&nbsp;192.9.100.220&nbsp;8&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;16<BR>22:12:02&nbsp;192.9.100.220&nbsp;7&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;16<BR>22:12:04&nbsp;192.9.100.220&nbsp;7&nbsp;192.9.100.21&nbsp;11&nbsp;192.9.100.42&nbsp;16<BR>状态统计图如下(可见图)</P>
<P>22:10:51&nbsp;&nbsp;&nbsp;&nbsp;<BR>22:10:53&nbsp;&nbsp;&nbsp;ESTABLISHED&nbsp;10<BR>22:10:55&nbsp;TIME_WAIT&nbsp;1&nbsp;ESTABLISHED&nbsp;11<BR>22:10:57&nbsp;TIME_WAIT&nbsp;2&nbsp;ESTABLISHED&nbsp;57<BR>22:10:59&nbsp;TIME_WAIT&nbsp;4&nbsp;ESTABLISHED&nbsp;31<BR>22:11:01&nbsp;TIME_WAIT&nbsp;4&nbsp;ESTABLISHED&nbsp;26<BR>22:11:04&nbsp;TIME_WAIT&nbsp;4&nbsp;ESTABLISHED&nbsp;21<BR>22:11:06&nbsp;TIME_WAIT&nbsp;4&nbsp;ESTABLISHED&nbsp;19<BR>22:11:08&nbsp;TIME_WAIT&nbsp;9&nbsp;ESTABLISHED&nbsp;23<BR>22:11:10&nbsp;TIME_WAIT&nbsp;11&nbsp;ESTABLISHED&nbsp;18<BR>22:11:12&nbsp;TIME_WAIT&nbsp;15&nbsp;ESTABLISHED&nbsp;18<BR>22:11:14&nbsp;TIME_WAIT&nbsp;19&nbsp;ESTABLISHED&nbsp;16<BR>22:11:17&nbsp;TIME_WAIT&nbsp;21&nbsp;ESTABLISHED&nbsp;18<BR>22:11:19&nbsp;TIME_WAIT&nbsp;26&nbsp;ESTABLISHED&nbsp;18<BR>22:11:21&nbsp;TIME_WAIT&nbsp;28&nbsp;ESTABLISHED&nbsp;26<BR>22:11:23&nbsp;TIME_WAIT&nbsp;32&nbsp;ESTABLISHED&nbsp;26<BR>22:11:25&nbsp;TIME_WAIT&nbsp;35&nbsp;ESTABLISHED&nbsp;17<BR>22:11:27&nbsp;TIME_WAIT&nbsp;36&nbsp;ESTABLISHED&nbsp;18<BR>22:11:30&nbsp;TIME_WAIT&nbsp;36&nbsp;ESTABLISHED&nbsp;21<BR>22:11:32&nbsp;TIME_WAIT&nbsp;36&nbsp;ESTABLISHED&nbsp;11<BR>22:11:34&nbsp;TIME_WAIT&nbsp;38&nbsp;ESTABLISHED&nbsp;4<BR>22:11:36&nbsp;TIME_WAIT&nbsp;38&nbsp;ESTABLISHED&nbsp;4<BR>22:11:38&nbsp;TIME_WAIT&nbsp;38&nbsp;ESTABLISHED&nbsp;4<BR>22:11:40&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:42&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:44&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:47&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:49&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:51&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:53&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:55&nbsp;TIME_WAIT&nbsp;38&nbsp;&nbsp;<BR>22:11:57&nbsp;TIME_WAIT&nbsp;36&nbsp;&nbsp;<BR>22:11:59&nbsp;TIME_WAIT&nbsp;35<BR>22:12:02&nbsp;TIME_WAIT&nbsp;34<BR>22:12:04&nbsp;TIME_WAIT&nbsp;34</P>
<P>请问是Jmeter不能模拟300个客户端不成功,还是服务器最大连接数只能达到60个并发访问</P>

liyoukebit 发表于 2006-12-4 22:45:57

补充图

补充图

liyoukebit 发表于 2006-12-4 22:48:02

补充图

补充图

liyoukebit 发表于 2006-12-8 22:27:46

jackei 你好,很感谢,你跟大伙分享的心得体会。我在工作遇到一个问题,想和你讨论一下:
前不久我用Jmeter 3 Agent, 1 Contrl 模拟300个并发进程进行测试,结果测试通过了。后来改用LoadRunner 模拟300个并发进程对同一server进行测试,服务器59sec时候挂掉了,查看日志,连接池超过150个,导致Java虚拟机挂了。by the way,我查看了网络连接的日志,jmeter模拟并发连接数,峰值大约是60个。http://bbs.51testing.com/thread-50486-1-1.html
所以我对Jmeter 分布测试的可靠性表示怀疑,不知你有没有做过相关的比较和验证。

jackei 发表于 2006-12-9 21:43:33

已回复 ^_^

http://www.cnblogs.com/jackei/archive/2006/09/14/504638.aspx
页: [1]
查看完整版本: 大家帮忙分析一下web服务器情况