Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 3.3.1 Thread Settings

Status
Not open for further replies.

s1bman

Programmer
Oct 16, 2002
3
0
0
CA
We are running into a issue with our instances of Tomcat 3.3.1 and are wondering if you could shed some light.
One one machine, we have the thread settings at:

<Http10Connector port=&quot;8080&quot;
secure=&quot;false&quot;
maxThreads=&quot;400&quot;
maxSpareThreads=&quot;50&quot;
minSpareThreads=&quot;10&quot; />

During our peak hours the number of java processes on this box only goes up to a max of 230 although the traffic at that time should cause the number to be higher. On all machines, during peak hours, our java threads hit 230 and don't go higher from there. Can you think of any reason why this might be or comment on the above server config line?

Thanks,
Sib
 
Shot-in-dark: Are you running on an older version of Linux? I seem to remember something about a 255 effective limit on either threads; or was it connections?

Sorry can't be more help.

Regards, pfist
 
We are running RedHat Linux 6.2 and Tomcat is working with Apache. The Apache processes are at around 1000 during peak so I don't think its an OS connection limitation.

Thanks for the feedback though,
Sib
 
We spoke to a consultant and he seems to have solved our problem. Here's are his findings in case anyone is having a similar problem:

In the &quot;server.xml&quot; file, the maximum number of threads specified is 400.
However this attribute is specified within the Http10Connector tag. The
Http10Connector attribute is used only for Tomcat in stand-alone mode, not
when Tomcat is configured to be used with an external web server such as
Apache. For an Apache/Tomcat configuration, Tomcat receives all requests via
the Ajp13Connector. It is within this tag where you need to specify the
&quot;maxThreads&quot;, &quot;maxSpareThreads&quot; and &quot;minSpareThreads&quot; attributes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top