-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 3:39 PM To: Jeffrey; Tomcat Users List Subject: RE: Tomcat 5 slow, it's in production, please help!
There are certainly people here who understand this much better than I, but ESTABLISHED these connections are doing something or are capable of doing something TIME WAIT these connections are in the process of dying CLOSE WAIT FIN WAIT 2 They can't do anything useful but do occupy space until they are finally gone. If the browser just goes away and doesn't end the connection, the server has to wait for a while before ending it and waiting for responses that never come. -----Original Message----- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 3:10 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5 slow, it's in production, please help! Thanks for reply. With "netstat -n", I got numerous records. Please see the attached file if the following is hard to see. TCP Local Address Remote Address Swind Send-Q Rwind Recv-Q State -------------------- -------------------- ----- ------ ----- ------ ------- 129.93.1.146.33544 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 129.93.1.146.33572 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 129.93.1.146.33573 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 127.0.0.1.33692 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.33692 32768 0 32768 0 ESTABLISHED 127.0.0.1.33694 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.33694 32768 0 32768 0 ESTABLISHED 127.0.0.1.33710 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED [snip] too much stuff [snip] 129.93.1.146.443 164.119.68.37.2826 64186 0 8760 0 TIME_WAIT 129.93.1.146.443 24.27.148.239.2308 16365 0 8760 0 ESTABLISHED 129.93.1.146.443 164.119.68.37.2919 65535 0 8658 0 ESTABLISHED 129.93.1.146.36485 64.89.177.72.50000 64677 0 9660 0 TIME_WAIT 127.0.0.1.8007 127.0.0.1.36488 32768 0 32768 0 TIME_WAIT 129.93.1.146.36487 64.89.177.72.50000 64677 0 9660 0 TIME_WAIT 129.93.1.146.443 65.31.230.130.1206 11368 0 8760 0 FIN_WAIT_2 129.93.1.146.443 65.31.230.12.60763 17520 1087 8760 0 ESTABLISHED 129.93.1.146.443 129.93.120.170.1460 17520 0 8658 0 ESTABLISHED 129.93.1.146.36489 64.89.177.72.50000 64677 0 9660 0 TIME_WAIT 127.0.0.1.36336 127.0.0.1.8009 32768 0 32768 0 TIME_WAIT 129.93.1.146.443 24.252.59.10.3923 16365 0 8760 0 ESTABLISHED 129.93.1.146.443 69.20.197.189.1199 9112 0 9016 0 ESTABLISHED 127.0.0.1.36491 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.36491 32768 0 32768 0 ESTABLISHED 129.93.1.146.443 24.208.93.36.9554 25200 0 8682 0 ESTABLISHED --- [EMAIL PROTECTED] wrote: > What does "netstat -nt" show? > You may have enough connections going that old ones > have to time out before you can establish a new one. > > -----Original Message----- > From: Jeffrey [mailto:[EMAIL PROTECTED] > Sent: Friday, May 06, 2005 2:16 PM > To: [email protected] > Subject: Tomcat 5 slow, it's in production, please > help! > > > I have a apache/tomcat environment that has some > problems recently. The environment has the > following: > 1. Apache 1.3 > 2. Tomcat 5.0.28 (Max memory 384mb) > 3. JDK 1.4.2_06 > > My apache has MaxClient set to 256 (apache default). > The maxThread for tomcat is 500. The site is a > database driven site. > > It seems working fine when load is low. But when > there > are more than 150 threads (from the sever status > view > of the tomcat manager), it's response time is very > slow (5 - 10 minutes). I have tested the database > connections, they seem responding fairly well. > > Interesting thing is that most of time the slow > response time only happens when a user login. Once > the > user login and get the main menu page, the user will > get a good response time. Is it related to KeepAlive > connections. > > Another strange thing is that many threads always > show > up in the server status view on the tomcat html > manager page even though I am sure the request has > gone (I tested this by making a request, then close > the browser). > > My CPU usage is low when the slowdown is experienced > (Using the top command on this solaris box which has > old solaris operating system 2.6? with 1GB memory. > > I set the session timeout time to 5 minutes, but in > the session view of tomcat manager, I see message > "30 > - <40 minutes:136 sessions". How a session that is > more than 30 minutes is still there. Maybe I don't > understand this message correctly. > > Please advice. This is a production machine. Helps > are > greatly appreciated. > > Thanks. > > Jeffrey. > > > > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news and > more. Check it out! > http://discover.yahoo.com/mobile.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
