This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Would Profiling Help?" Watch "Would Profiling Help?" New topic
Author

Would Profiling Help?

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
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: 477
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Would Profiling Help?
 
Similar Threads
Weblogic application lockup
Weblogic application lockup
Large File in Memory
How to test JSP performance
Does tomcat take long for anyone else to recycle?