• Post Reply Bookmark Topic Watch Topic
  • New Topic

With respect to locating a bottleneck in a web application.

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a web application where there are a number of JSP's , Servlets , and lot of utility classes contacting each other to perform the operations .

I have read that "For performance, you need to find a bottleneck by just looking at the code.

How can i identify in such a big application , what part of the code is taking the most time".??

Waiting for your valuable suggestions.


 
Anurag Blore
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi,

I am not sure how just by looking the code we can find the performance problem in the code. Even most experience developer needs to execute the code to find the issue.


Please read the basic concept of performance improvement here on java ranch
performace FAQ
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to monitor your code. With JAMon you can monitor servlets/jsps/jdbc/ejb/exceptions with no code changes and it is open source. It should only take you a few minutes to start monitoring.
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just looking at the code is perhaps the WORST way to find bottlenecks.

In over 25 years of working with high-performance software just about every time I've had performance issues, measurements indicated that the real bottleneck wasn't where people "knew" the app was inefficient, it was somewhere more or less unexpected. One of the worst of the lot was a data management system that was bringing down an entire mainframe on a daily basis - and it's AWFULLY hard to kill a mainframe. For that one, the tiger was turned into a kitten by simply changing one parameter and no code was modified at all.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anurag Blore wrote:Ravi,

I am not sure how just by looking the code we can find the performance problem in the code. Even most experience developer needs to execute the code to find the issue.




Yes , i am not that much expert to do this .

Thanks for all your suggestions.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!