如何加载/压力测试 java servlet?
我有一个 servlet,我想做的不仅仅是单元测试。我需要了解负载下的性能并对它进行压力测试。
我需要能够编写在特定时间范围内运行的各种事务的脚本,并收集响应时间数据,以便我可以识别故障点以及响应在哪个点严重下降。我一直在寻找任何答案,并找到了一些有关 HTTPUnit 的信息,但不确定这是否是这个问题的解决方案。如果可能的话,希望您的答案中包含非常简单的示例。
I have a servlet, and I want to do more than a unit test. I need to know performance under load and stress test it.
I need to be able to script a variety of transactions that run over specific time frames, and get collect response time data so I can identify failure points and at what point responses severely degrade. I have been looking through SO for any answers, and found some information about HTTPUnit, but am not sure if this would be the solution to this question. Would appreciate very simple samples in your answers, if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试类似 JMeter 的东西。
Try something like JMeter.
尝试http://www.blitz.io。如果可以从 Internet 访问该应用程序,则非常适合从云进行测试。
Try http://www.blitz.io. Works well for testing from the cloud if the app is accessible from the Internet.