Load testing a Java/Mysql application, where to begin?

折月煮酒 提交于 2019-12-12 05:48:49

问题


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?


回答1:


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:

  1. What are the page durations when NNN users are on the site?
  2. How many users can the site handle while maintaining our performance goals of 4 second page load times
  3. How many users does it take to crash the site?

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:

  1. How long does it take to get a typical testcase working?
  2. Does it provide any analysis of the data, or does the task of analyzing the mountain of data generated during the test fall to the user?
  3. Can the tool gather server metrics and integrate them into the reports and/or analysis?

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.




回答2:


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



来源:https://stackoverflow.com/questions/4350711/load-testing-a-java-mysql-application-where-to-begin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!