Get your CodeRanch badge!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Controlling Tomcat Response time" Watch "Controlling Tomcat Response time" New topic
Author

Controlling Tomcat Response time

Stojacavich Peter
Greenhorn

Joined: May 27, 2004
Posts: 2
Hi,

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
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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?
Bill
Stojacavich Peter
Greenhorn

Joined: May 27, 2004
Posts: 2
William,

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: http://aspose.com/file-tools
 
subject: Controlling Tomcat Response time
 
Similar Threads
WebLogic 6.1 SP3 - Stateful Session Bean Problem
Synchronized Block
Tomcat 6 connector configuration
Do we need to download both iis and tomcat to run jsp files
Threads for a servlet