aspose file tools*
The moose likes Tomcat and the fly likes Improve Tomcat performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Improve Tomcat performance" Watch "Improve Tomcat performance" New topic
Author

Improve Tomcat performance

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
Hello,

I have seens different configuration files with tomcat, and I was wondering wheather I could further improve tomcat performance by changing some settings!

Is it possible, and should I care about these things?

Regards,
Sim085
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Which ones are you looking at?
What have you done so far?
Do you have any means to test performance once you start tweaking the config files (a profiler)?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
For load testing your application to gather real data, consider the HttpClient package.
For internal monitoring of response times and the time consumed by various parts of your application, consider the JAmon toolkit.
Without real measurements and measuring technology in hand it doesn't make any sense to fiddle with settings.
Bill
Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
Thanks Bill and Ben Souther,

I admit my question was a little to general (sorry). The reason for this was that I do not know anything about how to check performance, and neither how to imrpve it. Thanks to both for informing me about measuring the current performance before starting any changes. Also thanks for the links, I will download those applications and see what I can do with them.

and next time I will try asking more specific questions (sorry for that again)

regards and many thanks,
Sim085
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No problem.

For the most part Tomcat ships in production ready mode.
There are things that you can do for development that will slow it down a bit (such as autoReload, etc).

Profiling your app to find out where the bottlenecks really are is always a good start.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Improve Tomcat performance