Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Tomcat 5 slow, it's in production, please help!

    0 answers - 4518 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    153 ESTABLISHED connections to port 443
    553 connections to port 443 in the process of dying.
    1420 connections total(Assuming I'm reading the output of wc correctly;)
    [tony@wf1 tony]$ cat netstat.txt |grep ESTABLISHED|wc
    693 4851 55442
    [tony@wf1 tony]$ cat netstat.txt |grep CLSE_WAIT|wc
    101 707 7980
    [tony@wf1 tony]$ cat netstat.txt |grep TIME_WAIT|wc
    610 4270 47590
    [tony@wf1 tony]$ cat netstat.txt |grep FIN_WAIT|wc
    3 21 237
    [tony@wf1 tony]$ cat netstat.txt |wc
    1420 9929 112098
    [tony@wf1 tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep ESTABLISHED|wc
    512 3584 40960
    [tony@wf1 tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
    25 175 1950
    [tony@wf1 tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
    553 3871 43222
    [tony@wf1 tony]$ cat netstat.txt |grep 129.93.1.146.443|grep ESTABLISHED|wc
    153 1071 12242
    Message
    From: howarddy3 (AT) att (DOT) net [mailto:howarddy3 (AT) att (DOT) net]
    Sent: Friday, May 06, 2005 7:00 PM
    To: Tomcat Users List; Tony (AT) ServaCorp (DOT) com
    Subject: RE: Tomcat 5 slow, it's in production, please help!
    I think some of the problem is at the S level
    You can set a session time at the tomcat level, but the default solaris TCP
    timeouts are hours long. I hope you used the ndd commands to set the TCP
    parameters for short web sessions.
    Also, Solaris 2.6 has a bad thread model and there are numerous patches
    required to run it with any recent Java 2 distributions. To use the
    1.4.xxx JVM would require about a dozen patches.
    It would be way better to try to get Solaris 10 installed on this box -- It
    handles the ndd setting for you and is way faster on the same hardware.
    [even solaris 8]
    message
    From: <Tony (AT) ServaCorp (DOT) com>
    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.
    Message
    From: Jeffrey [mailto:holdit369 (AT) yahoo (DOT) com]
    Sent: Friday, May 06, 2005 2:16 PM
    To: tomcat-user (AT) jakarta (DOT) apache.org
    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. 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!
    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org

Re: Tomcat 5 slow, it's in production, please help!


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Java"

EMSDN.COM