File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Would Profiling Help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Would Profiling Help?" Watch "Would Profiling Help?" New topic

Would Profiling Help?

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 482
Hi Everyone,

At work, I was handed a new task this week, which I have to complete in a very short period of time. There is a web application (quite a huge one) based on Struts 2.0/ATG and other stuff. Running on WebLogic 10.0. Now after a lot of research, it was found that the Login process of the web application is taking too long and there was a need for optimizing the login process. There were some calls to other applications which are not handled by us which were taking to long. The current status is that the login process takes around 16-18 seconds. I was given the task of finding out where it can be optimized and how. The target is something around 10 seconds. Lower the better. I would like to know that would using a Profiler help in this case? Please guide me.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

A profiler doesn't help you with improving your application speed but helps you in getting insight in where your program spends the most time.
Then you can focus on those areas and thus focussing on the problem instead of optimizing everywhere.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 482
Yes that is something we have to look at. So i guess i will give Profiling a shot. But for now I just have to go through method calls and filter out unnecessary calls! Just by searching through the workspace! Boring!
I agree. Here's the link:
subject: Would Profiling Help?
jQuery in Action, 3rd edition