You can create a filter or run on separate Tomcat instances.
NB: You are not solving the cause, but the effect. You don't have enough
threads or cpu-power to handle the total load.
Ronald.
Op maandag, 29 juni 2009 07:12 schreef prashant sharma :>
Hi,
I have the following attributes in the "server.xml" file:
<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
The web application that I am working on exposes many webservices, which are invoked from
other applications. The problem I am facing is that when my application gets a lot of
webservice requests, it reaches the limit of "maxThreads". After this limit is
reached I am not able to open the webpage for my web application.
Is there any way to configure my web application such that I have a separate
quota of threads for webpage access and a separate quota for other types of
accesses like webservice requests?
Thanks!
Prashant