Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controlling Tomcat Response time

 
Stojacavich Peter
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic