tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauricio NuƱez <>
Subject Re: Freeing processors
Date Thu, 07 Aug 2003 14:51:56 GMT

the HttpConnector haa a connectionTimeout parameter. Set this to a low 
razonable value, as 20000 ( 20 seconds )

I was having a similar problem, using the JkConnector, but because my app 
wasn't releasing db connections to the dbcp pool. Then, the "run out of 
processors ..." is more a signal the leakaging in your app. (IMHO :-)
Check the timeout of your CORBA connections if available.


El Jue 07 Ago 2003 08:12, Daniel Carlsson escribiĆ³:
> Hi
> My problem is that tomcat runs out of processors and I see "No processor
> available, rejecting this connection" in the log file. By reading earlier
> posts a I understand that each processor is a thread and is not freed until
> it is returned by my code, my code is hanging somewhere.
> The problem is that my servlet (the only thing running in tomcat) only
> "forwards" requests threw CORBA to a big app that I can't change, and its
> in their the code hangs.
> So, how can I solve this? The perfect solution would be if tomcat could
> automaticly free processors after some timeout ( 60 s) but I have not found
> such a feature/setting, does it exist? If not, could I do some small hack
> in my servlet that monitors and somehow terminates (kills thread or
> something) the request after 60s and therby freeing the processor?
> I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the
> HttpConnector.
> Thank you
> Daniel Carlsson
> Gimlisoft AB
> Email:
> Tel: 0709-744570, 031-189024
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message