dev@glassfish.java.net

Simulating load traffic onto port 4848 or 8080 hangs PE [Submitted as issue #677]

From: Roberto Malatesta <roberto.malatesta_at_gmail.com>
Date: Wed, 24 May 2006 16:27:13 +0200

Hi,

This consistently happens with both 9.1 distros (Glass/Sun).

If I issue an Apache Benchmark:

ab -c 100 -n 10000 http://<host>:4848/
or

ab -c 10 -n 1000 http://<host>:8080/HelloImpl/HelloImplService?Tester
(the tutorial pojo web service)

to simulate some traffic load, after a few of these ab calls the server hangs
and the only mean to resort it is to shutdown and startup.

Before the kill/restart the server system shows:

robi_at_6[bin]$ netstat -na | grep CLOSE
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32958 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32959 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32956 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32957 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32954 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32955 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32952 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32953 CLOSE_WAIT
tcp6 1 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32950 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32951 CLOSE_WAIT
tcp6 1 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32948 CLOSE_WAIT
tcp6 1 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32949 CLOSE_WAIT
tcp6 1 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32946 CLOSE_WAIT
tcp6 1 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32947 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32964 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32965 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32962 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32963 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32960 CLOSE_WAIT
tcp6 127 0 ::ffff:192.168.1.2:8080 ::ffff:192.168.1.:32961 CLOSE_WAIT





I googled for some open bug and saw that there were:

Bug ID: 6415256
and
Bug ID: 6324680

that were supposed to keep track of some similar problem, and that they are now
closed.

Java Version is:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

Kernel is 2.6.10:
robi_at_6[bin]$ uname -a
Linux xp2012 2.6.10 #1 Wed Feb 23 16:54:53 EST 2005 i686 GNU/Linux


Don't think it's a problem of JDK (since Tomcat works nicly)
and don't think is a problem of my Linux Box (I have ACE/TAO, Omniorb and other
CORBAs work nicely with no persistent CLOSE_WAITs).


Alla prossima,
zum nexten Mal,
à la prochaine,
see You,

Roberto M