Java Performance

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 1

 clip_image002.gif

Profiling

Profiling is a focused look at measurable aspects of a system to determine its performance.It provides necessary information for analysis or other steps. Profiler in Java normally falls into following categories.

Analysis
Analysis Process as following steps:

clip_image001.gif

Finally: Beautiful code is fast code.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s