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.
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.
Joined: Mar 04, 2009
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!