You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Armbrust <da...@gmail.com> on 2009/03/30 17:32:54 UTC

read variables from server.xml / runtime info of Connector thread pool status?

Is there a way to get the values of variables from the server.xml file
from a webapp running within tomcat?

Specifically, my webapp would like to know what the current value of
the Connector acceptCount.

Even more specifically, my webapp is serving pages, and answering SOAP
requests.  I need to prevent a large batch of SOAP requests from
blocking every Connector thread - so when my filter which intercepts
SOAP requests notes that the free Connector count is getting low, it
can reject some SOAP requests.

Any suggestions on how to do this?

Thanks,

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: read variables from server.xml / runtime info of Connector thread pool status?

Posted by Mark Thomas <ma...@apache.org>.
Dan Armbrust wrote:
> Is there a way to get the values of variables from the server.xml file
> from a webapp running within tomcat?

JMX.

> Specifically, my webapp would like to know what the current value of
> the Connector acceptCount.
> 
> Even more specifically, my webapp is serving pages, and answering SOAP
> requests.  I need to prevent a large batch of SOAP requests from
> blocking every Connector thread - so when my filter which intercepts
> SOAP requests notes that the free Connector count is getting low, it
> can reject some SOAP requests.
> 
> Any suggestions on how to do this?

Filter (generic) / Valve (Tomcat specific).

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org