【问题标题】:Testing Openfire with Grinder (BOSH load testing)使用 Grinder 测试 Openfire(BOSH 负载测试)
【发布时间】:2011-11-05 09:39:14
【问题描述】:

我一直在尝试通过 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

急需帮助!!!!!!任何人都知道我该如何解决这个问题?

【问题讨论】:

    标签: openfire grinder


    【解决方案1】:

    “地址已在使用”问题很奇怪。你可能想试试

    grinder.processes=1
    grinder.threads=400
    

    就只看到 103 个并发用户而言,您的一次磨床运行需要多长时间才能执行?我的想法是 JVM 执行的最早线程在最终线程有机会完全初始化和工作之前完成。如果你试试这个:

    grinder.runs=100
    

    您将更有可能实现您正在寻找的完整并发级别。

    【讨论】:

    • 1) 这行得通!同时给我带来了很多困惑,因为相同的服务器设置(除了现在我在操作系统上使用 oracle 作为它的数据库:ubuntu 11.10)让我在前面的 150 个用户面前感到尴尬,因为他们中的大多数人在会议期间被踢了出去聊天(无效的 SID 问题)。我正在使用 Candy 网络聊天客户端(即 BOSH over proxed Apache Win32 )。有些事情告诉我这不是生产环境的最佳模拟。 OS和db会不会导致这样的问题?
    • 2) 我收集了大约 1667 个测试样本,当我在 Grinder Analyzer 上运行它时,它给了我一个“小于 250 桶错误”。知道那是什么吗?
    猜你喜欢
    • 2022-07-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-06
    • 1970-01-01
    • 2012-09-25
    相关资源
    最近更新 更多