users@glassfish.java.net

Re: Glassfish hangs after a few days

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 17 Sep 2009 09:54:59 -0400

Salut,

glassfish_at_javadesktop.org wrote:
> Jeanfrancois,
>
> Thank you so much for your clarification. I do not know where or how to find out what version of grizzly we have.

Probably 1.0.23 which is included in lib/appserv-rt.jar

>
> We are using java jdk 1.6.0_10.
>
> Where is grizzly jar located in the domain.xml file exactly? I cant find it. How would we replace the grizzly jar files?

Just add the following:

   <java-config classpath-suffix="grizzly-1.0.30.jar" ...

(look for java-config element)

>
> Jar files listed in our domain.xml
> -----------------------------------------------
> <jvm-options>-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.taglisteners=jsf-impl.jar</jvm-options>
>
> <lifecycle-module class-name="com.sun.jbi.framework.sun.SunASJBIBootstrap" classpath="${com.sun.aas.installRoot}/jbi/lib/jbi_framework.jar" enabled="true" is-failure-fatal="false" name="JBIFramework" object-type="system-all">
>
>
> Acceptor thread configuration
> -----------------------------------------------
> <http-service>
> <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%" rotation-enabled="true" rotation-interval-in-minutes="15" rotation-policy="time" rotation-suffix="yyyy-MM-dd"/>
> <http-listener acceptor-threads="1000" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="80" redirect-port="443" security-enabled="false" server-name="" xpowered-by="true">
> <property name="proxiedProtocols" value="ws/tcp"/>
> </http-listener>
> <http-listener acceptor-threads="1000" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="443" redirect-port="443" security-enabled="true" server-name="" xpowered-by="true">
> <ssl cert-nickname="s1as" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
> </http-listener>
> <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin-listener" port="4848" security-enabled="false" server-name="" xpowered-by="true"/>
> <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="http-listener-1,http-listener-2" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
>
>

How many core/processor are you running on? It would be better to set
acceptor-threads="1/NumberOfCore" and instead set the 1000 with:

> <request-processing header-buffer-length-in-bytes="8192" initial-thread-count="2" request-timeout-in-seconds="30" thread-count="1000" thread-in
> crement="1"/>

But 1000 is really really high IMO. I would suspect you will get much
better performance by setting the value between 80 and 120.



> Stack Traces
> -----------------------------------------------------
> Attached is a file with some stack trace examples of things we are seeing in the server.log


Thanks...will take a look!

-- Jeanfrancois

> [Message sent by forum member 'britton_laroche' (britton_laroche_at_yahoo.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=364307
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>