File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

web application performance improvement

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 196
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.

Joe Ess

Joined: Oct 29, 2001
Posts: 9188

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: 196
Can you suggest any tool which can help?
Joe Ess

Joined: Oct 29, 2001
Posts: 9188

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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
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: 862
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. - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Jon Hxx

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.
I agree. Here's the link:
subject: web application performance improvement
It's not a secret anymore!