Hi people!
We moved to Glassfish v3 and now have a problem: after starting AS in a short time (lesser than 1 min) server stops responding on port 80. In this time the same application on other port (other http-listener) still works well. Changing listeners' parameters makes listener work for a short time again (I think because of listener's inner restarting by AS), so I suppose DB access problems is not the case.
The same proble appeared in GF v2.1, but it happened once in a 2-5 days.
I've red about all similar topics in forums and blogs and tried many tunings, but it didn't help, so I ask our pros to look at my problem, please!
We have latest GFv3 version
JDK 1.6.0_16 (also tried latest JDK7)
Some lines from domain.xml:
<java-config classpath-suffix="">
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
<jvm-options>-XX:+LogVMOutput</jvm-options>
<jvm-options>-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log</jvm-options>
<jvm-options>-XX:MaxPermSize=256m</jvm-options>
<jvm-options>-server</jvm-options>
<jvm-options>-XX:+AggressiveHeap</jvm-options>
<jvm-options>-XX:ParallelGCThreads=2</jvm-options>
<jvm-options>-XX:+UseParallelOldGC</jvm-options>
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Xmx2048m</jvm-options>
<jvm-options>-Xss128k</jvm-options>
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options> <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-XX:+CMSClassUnloadingEnabled</jvm-options>
<jvm-options>-Djava.rmi.server.hostname=avatar-studio.ru</jvm-options>
<jvm-options>-Dcom.sun.grizzly.autoConfigure=true</jvm-options>
<jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>
</java-config>
<thread-pools>
<thread-pool name="thread-pool-1" max-thread-pool-size="100" thread-pool-id="thread-pool-1" />
...
</thread-pools>
<network-config>
<protocols>
<protocol name="http-listener-1">
<http xpowered-by="false" trace-enabled="false" timeout-seconds="150" forced-response-type="AttributeDeprecated" default-virtual-server="mirchar" max-connections="10000" default-response-type="AttributeDeprecated" comet-support-enabled="true">
<file-cache />
</http>
</protocol>
<network-listener port="80" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
<transports>
<transport write-timeout-millis="15000" display-configuration="true" name="tcp" selector-poll-timeout-millis="500" acceptor-threads="2" />
</transports>
...
<network-config>
Here are netstat's and jstack's dump in attaches
[Message sent by forum member 'ahaytukam' (ahaytukam_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=384036