aspose file tools*
The moose likes Performance and the fly likes web application performance improvement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "web application performance improvement" Watch "web application performance improvement" New topic
Author

web application performance improvement

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 194
Hi all,

I have never worked on any performance related issue. Recently i got a task where i need to find out that how the performance of a web application can be improved.
Its a simple web application having ejbs,servlets and jdbc. Through GUI a job can be created which is basically a quartz job and it executes at specified time. Some times some of these jobs does not complete and keeps on running because they have large data to process. So i have been asked to improve the performance of these kinds of jobs. How should i move ahead ? Please advice.

regards,
Ajse
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Buy faster hardware. It is probably the most cost-effective way to increase performance.
If you want to dig into the code and try to improve it, you should read our Performance FAQ.


[How To Ask Questions On JavaRanch]
ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 194
Can you suggest any tool which can help?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Joe Ess wrote:you should read our Performance FAQ.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

There's 2 ways to attack this:

1. Find a way to process less data.
2. Find a way to process the data more efficiently.

Use one or both of the above.

In the case of database-related performance problems, one of the first things to do is determine how much of the overhead is in the webserver and how much is in the database. A lot of times, optimizing the database operations can result in big gains. For that, it's good to be friends with the DBA. Also to learn how EXPLAIN works.

Sometimes you can get a big boost by moving expensive processing from the appserver to the database server. I'm not a big fan of stored procedures for trivial purposes, but sometimes just doing the "heavy" lifting in the DB server can reap big dividends. Of course, that can cause the DBA to Have Words with you, so you may have to justify the business need.

Of course, the real irony in performance improvement these days is that a lot of companies would rather have you spend time manually figuring out what's wrong instead of budgeting up for some good measurement software. After all, your time is "free" and this is one area where the free solutions are fairly thin.

Don't forget that Java doesn't run in a vacuum, either. Check OS-level performance as well. A badly-tuned OS can be just as much grief as a badly-tuned appserver or badly-tuned database.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Performance Analysis for Java(TM) Websites
Authors:Stacy Joines, Ruth Willenborg, Ken Hygh
Paperback: 464 pages
Publisher: Addison-Wesley Professional
Language: English
ISBN-10: 0201844540
ISBN-13: 978-0201844542
Product Dimensions: 9.2 x 7.4 x 1.1 inches


* Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
Monitor the performance of the application and see where the performance problem is. Many tools can help you with this. JAMon comes with a jdbc driver that measures performance of your SQL.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Jon Hxx
Greenhorn

Joined: Mar 08, 2011
Posts: 3
I would suggest taking a more bird eye view in identify J2EE performance issue. Here are some of the problems
Top J2EE performance problems that you may pay attention in locating performance and scalability issue.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: web application performance improvement