Thanks for your replies. I found the solution was to set JkWatchdogInterval (by default this is not on). I set it to 30, and observed the FIN_WAIT disappears after 60 seconds (this could be the worker.maintain setting?) and the CLOSE_WAIT thread disappeared when it reached the connection_pool_timeout.
Does this mean connection_pool_timeout only works if JkWatchdogInterval is swithed on? Ed. -----Original Message----- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: 13 July 2011 23:23 To: users@tomcat.apache.org Subject: Re: mod_jk question about lingering close_waits On 13.07.2011 23:16, André Warnier wrote: > Hi. > > I am not the one who can really answer your question, but > > 1) this is the right list for Apache/Tomcat connectors (mod_jk among them) > > 2) a question : do these CLOSE_WAIT sockets bother you for some specific > reason ? > In a totally different context, I have had problems with Linux systems > when hundreds of such sockets accumulated over time (entire TCP stack > becoming unresponsive at some point), but they do not seem to have an > impact when the number remains "reasonable" (below one hundred or so). > In this case, as I understand things, there will be a maximum of N such > sockets, where N is the maximum number of threads which Tomcat may have, > at some point, running simultaneously from this AJP Connector. (And it > is also the number of connections which mod_jk will automatically > configure in its pool). > On many of the sites which I take care of, I regularly see 25-50 such > mod_jk sockets in CLOSE_WAIT state for extended periods of time, and > they do not seem to have any negative consequences on the system. They > just clutter the netstat displays, but you can always "grep -v" them out. 3) Look at the extensive sample configuration provided by the mod_jk 1.2.32 source download. There are many interesting worker properties, for example idle timeouts, which should reduce the CLOSE_WAIT counts. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Group Holdings plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the Financial Services Authority. FSA Register number 114059. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org