我一直试图在BOSH上测试用于负载测试的openfire服务器,但在运行了几分钟后,我得到了以下错误。
1)
11/4/11 3:49:33 PM (thread 3 run 0 test 601): Aborted run due to Java exception calling TestRunner
Java exception calling TestRunner
File "D:\grinder\projects\loadtest\bin\..\tests\..\tests\one2one.py", line 144, in changePresence
File "D:\grinder\projects\loadtest\bin\..\tests\..\tests\one2one.py", line 208, in __call__
Caused by: java.net.BindException: Address already in use: connect2)我还收到了404个无效的SID错误。
最初我在Windows2003Server上设置了openfire,但后来我在Ubuntu11.10上设置了它(RAM2.0 GiB英特尔酷睿Duo T2400 @1.83 GiB)
1)首先,我运行php curl fetch脚本将用户添加到使用userservices插件添加了大约10,000次使用(在此期间,我得到了许多空白响应,所以这可能与问题有关,但我现在不会关注这种不当行为)
2)但是我需要测试400个用户,所以我设置了以下grinder.properties:
grinder.processes=4
grinder.threads=100
grinder.runs=1
grinder.consoleHost=192.168.1.205
grinder.consolePort=6372
grinder.logDirectory=../logs
grinder.numberOfOldLogs=0
grinder.jvm.arguments=-Dpython.cachedir=../tmp
grinder.script=../tests/one2one.py(奇怪的是,最终只启动了103个并发用户)
(我已经尝试使用一个代理进行测试)
3)我做了一点研究,发现我可以为bosh配置openfire;所以我添加了以下system.properties
xmpp.httpbind.client.idle 360
xmpp.httpbind.client.requests.max 400急需帮助!谁有关于我如何解决这个问题的见解?
发布于 2011-11-06 09:14:05
“地址已在使用”的问题很奇怪。您可能希望尝试使用
grinder.processes=1
grinder.threads=400到目前为止,只有103个并发用户,那么执行一个研磨机运行需要多长时间?我的想法是,JVM执行的最早的线程在最后的线程有机会完全初始化并完成工作之前完成。如果你尝试这样做:
grinder.runs=100您将更有可能实现您正在寻找的完整级别的并发。
https://stackoverflow.com/questions/8019351
复制相似问题