Java Performance

4 01 2008

Performance is critical to the success of an application.The user doesn’t not only require it runs right but also require it runs fast.So performance planning and analysis should be included in all the life cycle of development.

Actually performance relies on several factors:

  • Hardware
  • Software
  • Configuration
  • Cost
  • 3rd party system/libraries

But here I’ll only focus on software part.

Performance Planning

First, before starting the project, we should have a performance planning in mind.Performance should be an afterthought. Especially because architectural problem cause some performance problem can’t be fixed except redesign all the application. Following figure shows different levels of tuning.The most important part is on the bottom.

Figure clip_image001.gif

Finally: Beautiful code is fast code.





JMeter

3 01 2008

JMeter under Apache project is an application designed to load test C/S software.JMeter can be used to simulate a heavy load on a server , network or object to test its strength or to analyze overall performance under different load types.

 

After extracting JMeter on your computer, you can run it by jmeter.bat. To begin with JMeter, you need to build a test plan.A test plan describes a series of steps JMeter will execute when run. A complete test plan will consist of one or more Thread Groups, logic controllers, sample generating controllers, listeners, timers, assertions, and configuration elements.