tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christophe blin <>
Subject Re: How to have a request timeout ?
Date Thu, 22 Nov 2007 14:11:16 GMT

Pid-2 wrote:
> Can you elaborate on the reason behind this requirement?

sure !

first some background :
1/ my servlet is a web service (done with spring exporter and xfire if that
2/ the client is not a browser but the PHP SOAP extension
3/ 5 seconds is the example (in real life, it would be something like 30

my problem : when the php script times out (max_execution_time of the
php.ini is reached), the servlet request does not stop...
As a consequence, I found 5 threads in my tomcat instances which take 100%
of the CPU and with a lifetime greater than or equals to 123000532ms (that
make more than 1 day).

so I'd like to know how to stop a request if it takes more than x seconds
(like the php.ini max_execution_time).

I know this is surely bad practice but I can not find a way to sort out this
problem otherwise

note : sometimes when the php script times out the request is closed, but
sometimes not... so maybe this is a PHP issue or a PHP Soap extension issue
View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message