我一直在尝试通过 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: connect
2) 我也收到 404 Invalid SID 错误。
最初我在 Windows 2003 Server 上设置了 openfire,但后来我在 ubuntu 11.10 上设置了它(RAM 2.0 GiB Intel Core Duo T2400 @ 1.83GHz)
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
非常需要帮助!!!!任何人都知道我该如何解决这个问题?