tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christophe blin <cb...@tennaxia.com>
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
matters)
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
seconds)

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: http://www.nabble.com/How-to-have-a-request-timeout---tf4855066.html#a13897171
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message