wood burning stoves
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
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: 13037
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: http://aspose.com/file-tools
subject: Controlling Tomcat Response time
It's not a secret anymore!