This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Improve Tomcat performance" Watch "Improve Tomcat performance" New topic

Improve Tomcat performance

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102

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?

Ben Souther

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

Joined: Mar 22, 2000
Posts: 12760
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.
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,
Ben Souther

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.
subject: Improve Tomcat performance
Similar Threads
Smooth ticker in IE8: impossible?
tomcat performance tuning
Hosting web site on tomcat 6
connection timeout.