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 Controlling Tomcat Response time 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 "Controlling Tomcat Response time" Watch "Controlling Tomcat Response time" New topic

Controlling Tomcat Response time

Stojacavich Peter

Joined: May 27, 2004
Posts: 2

I wish to control the response time of my jsp/servlet application that runs on tomcat.

I am trying to do that by changing the maxthreads in the server.xml but it is not reliable.

At extremely low thread count like 2 my response times are high but as soon as I increase the thread count to say 4 response improves drastically. I am sending 6 requests simultaneously using my java url apis.

Anybody tried this before and have been successfull in controlling the response times based on the # of max threads?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
What exactly are you trying to accomplish?
It sounds like you don't want the application to run at full speed.
What is wrong with giving Tomcat enough Threads to handle your 6 requests "at one time"? Is there some other component of the system that is a bottleneck?
Stojacavich Peter

Joined: May 27, 2004
Posts: 2

I am trying to simulate something where I am generating load onto my JSP/Servlet application and based on the # of machines servicing the load the response time would change. but to emulate that with just one tomcat machine (at the present) I am hoping to see how by controlling either the # of threads in server.xml or somehow can I change the response behavior.

Essentially want to see how the app would scale with more machines in the loop. Hope that clarifies..
I agree. Here's the link:
subject: Controlling Tomcat Response time
Similar Threads
Synchronized Block
Threads for a servlet
Do we need to download both iis and tomcat to run jsp files
WebLogic 6.1 SP3 - Stateful Session Bean Problem
Tomcat 6 connector configuration