压力测试 BlazeDS 的建议
我们正在删除 XSL-> HTML 解决方案并为我们的用户群将其替换为 Flex UI。 问题之一是 BlazeDS(amf 端点,即流式传输或轮询)将无法像 EJB 那样处理负载 -> BlazeDS。 XML-> XSLT-> HTML 堆栈。 我的理论是它应该表现得更好,但我需要一种方法来统计证明这一点。
对于 BlazeDS 压力测试产品和/或方法有什么建议吗? Adobe有一个针对LCDS的压力测试框架,但它表示它与BlazeDS不兼容。 我认为测试可能很简单,因为我现在不打算将其用作消息传递解决方案,并且简单地希望将其作为 RemoteObject 连接的端点。
We are removing our XSL-> HTML solution annd replacing it with a Flex UI for our userbase. One of the concerns is that the BlazeDS (amf endpoint, so streaming or polling) won't be able to handle the load as well as the EJB -> XML -> XSLT -> HTML stack. My theory is that it should perform better, but I need a way to statistically prove this.
Are there any suggestions for a product and/or method for stress-testing BlazeDS? Adobe has a stress test framework for LCDS, but it says it is not compatible with BlazeDS. I think that it might be simple to test given that I am not planning on using it as a messeging solution right now, and simple want it as an endpoint for RemoteObject connections.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我会考虑使用 JMeter 对后端运行一些自动化测试:
http://jmeter.apache.org/
您应该能够针对后端编写一个测试,该测试采用一些 Java 对象并使用 Blaze 中可用的 API 在 AMF 中对它们进行编码,并将结果设置为 HTTP 请求的正文。
I would look at using JMeter to run some automated tests against the backend:
http://jmeter.apache.org/
You should be able to write a test against the backend which takes some Java objects and uses the API available in Blaze to encode them in AMF and set the result as the body of the HTTP request.
Rob de Boer 有一篇关于实现这种方法的好文章 http://blog.jteam.nl/2009/07/14/performance-testing-a-flex-blazeds-application/
Rob de Boer has a good article on implementing such an approach here http://blog.jteam.nl/2009/07/14/performance-testing-a-flex-blazeds-application/
为了扩展 Cliff 的答案,现在有一个用于处理 AMF 消息的 JMeter 插件。 它将消息反序列化为 XML,以便可以对其进行编辑。 您可以使用变量生成插入到每个 AMF 示例中的唯一会话 ID。
http://github.com/steeltomato/jmeter-amf
完全披露:我是项目作者。
To expand upon Cliff's answer, there is now a JMeter plugin for handling AMF messages. It will deserialize the message to XML so that it can be edited. You can use variables to generate unique session ids that are inserted into each AMF sample.
http://github.com/steeltomato/jmeter-amf
Full disclosure: I am the project author.
我想到了几个框架:
嗯,如果你想要真正富有表现力的统计数据(例如,除了平均值之外,最大值、最小值还有标准差,甚至 95% 置信区间或序列相关性),你必须仔细研究这些工具,因为它们中的大多数都很弱关于统计。
希望这个list 解释几种性能测试工具的优点和缺点可以帮助您。
Several frameworks come to mind:
Hm, if you want really expressive statistics (e.g. besides average, max, min also standard deviation, or even 95% confidence interval or serial correlation), you'll have to take a close look at the tools, since most of them are weak on statistics.
Hopefully this list explaining the strength and weakness of several performance testing tools can help you.
我的公司 (UBIK-INGENIERIE) 分发商业 Apache JMeter 插件来负载测试基于 AMF 的应用程序以及扩展的 BlazeDS 应用程序。
您可以使用 Apache JMeter 的标准知识轻松记录、改变和重放基于 Flex/AMF 的应用程序。
请参阅:
http://www.ubik-ingenierie.com/-Solutions-
http://www.ubik-ingenierie.com/blog/ ubik-load-pack/
My Company (UBIK-INGENIERIE) distributes a commercial Apache JMeter plugin to load test AMF based applications and by extension BlazeDS ones.
You can easily record, variabilize and replay Flex/AMF based application with standard knowledge of Apache JMeter.
See:
http://www.ubik-ingenierie.com/-Solutions-
http://www.ubik-ingenierie.com/blog/ubik-load-pack/