对 Java/Mysql 应用程序进行负载测试,从哪里开始?
我正在开发一个在 Tomcat 和 Mysql 中运行的 Java 应用程序。我想知道为这项任务采取什么策略。
到目前为止,我所知道的用于这项工作的唯一工具是 JMeter 和 Siege。我也不知道对这些工具采取什么策略。我是否只测试我可以提出的每个请求,或者是否有识别痛点的通用做法?
I am working on a Java app running in Tomcat with Mysql. I am wondering about what strategy to take for this task.
So far the only tools I know of for the job are JMeter and Siege. I also don't know what strategy to take with these tools. Do I just test every request I can make or is there a general practice for identifying pain points?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们代表客户执行大量负载测试服务 - 我们始终推荐采用敏捷、迭代的方法进行负载测试。当日程紧张时尤其如此。
首先,确保您清楚测试的目标。完成后您想回答哪些问题?共同目标是:
考虑到目标,我们建议您首先构建最关键的测试用例并运行测试。越快运行测试,就能越早解决系统范围或架构性能问题。运行测试,必要时优化/修复应用程序,当它满足性能目标时,添加另一个测试用例。继续该循环,直到您 (1) 对测试结果和覆盖范围感到满意或 (2) 您用完时间和/或预算。
选择从哪些测试用例开始可能具有挑战性 - 我在 我们的博客。
最后,确保您选择的测试工具能够支持您的目标以及满足您的日程安排所需的生产力水平。需要考虑的事项:
当然,我建议您看一下我们的产品(Web Performance Load Tester),但谨慎的做法是至少尝试一些工具,看看哪一个最适合您的需求。
We perform a lot of load testing services on behalf of our clients - and we always recommend an agile, iterative approach to load testing. This is especially true when schedules are tight.
First, be sure you are clear on the goals of your testing. What questions to you want to answer when you are done? Common goals are:
With the goals in mind, we recommend that you start by building the most critical testcase and run a test. The quicker you get to running tests, the sooner you can address system-wide or architectural performance problems. Run a test, optimize/fix the application if necessary, and when it satisfies the performance goals, add another testcase. Continue that cycle until you are either (1) satisfied with the test results and coverage or (2) you run out of time and/or budget.
Choosing which testcases to start with can be challenging - I've got some more detailed advice on our blog.
Finally, make sure you choose a testing tool that is going to support your goals and the level of productivity you need to meet your schedule. Items to consider:
Naturally, I recommend taking a look at our product (Web Performance Load Tester), but it is prudent to try at least a few tools to see which one best suits your needs.
我还使用一些网络基础服务(LoadStorm)来帮助进行负载测试...它有一些关于负载测试的指针和文章
http://loadstorm.com/load-testing
I also use some web base service (LoadStorm) to help with load testing... it has some pointers and articles on load testing
http://loadstorm.com/load-testing