users@glassfish.java.net

Re: Server is hanging when multiple users logged in.

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Thu, 26 Mar 2009 13:04:41 +0100

maybe database connection not closed.......

On Thu, Mar 26, 2009 at 1:02 PM, <glassfish_at_javadesktop.org> wrote:
> Hi,
>
> Can any one help to solve this problem.
> Our application is EJB CMP2.1 applicaiton. When I deployed in Glassfish applicaiton server in cluster environment... its working fine for single user, but when multiple users are connected to the application and perform any EJB operation (insert, delete, update) server is getting hang and not at responding. and we are not getting any exception in server and applicaiton logs.
>
> find the threads which are blocked and inactive when server is hang as attachment ( jstack <instance_pid>).
>
> These are the JVM Option i set for Cluster config.
>
>        <jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>
>        <jvm-options>-XX:+DisableExplicitGC</jvm-options>
>        <jvm-options>-Xss128k</jvm-options>
>        <jvm-options>-Dcom.sun.enterprise.web.ara.policyMethod=reserve</jvm-options>
>        <jvm-options>-Xms1024m</jvm-options>
>        <jvm-options>-XX:+UseParallelGC</jvm-options>
>        <jvm-options>-Dcom.sun.enterprise.web.connector.useCoyoteConnector=true</jvm-options>
>        <jvm-options>-DAllowMediatedWriteInDefaultFetchGroup=true</jvm-options>
>        <jvm-options>-XX:MaxPermSize=192m</jvm-options>
>        <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder</jvm-options>
>        <jvm-options>-Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl</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>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
>        <jvm-options>-Xmx1024m</jvm-options>
>        <jvm-options>-server</jvm-options>
>        <jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib${path.separator}${com.sun.aas.installRoot}/lib/jdbcdrivers</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>-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar</jvm-options>
>        <jvm-options>-Dcom.sun.enterprise.taglisteners=jsf-impl.jar</jvm-options>
>        <jvm-options>-XX:NewRatio=2</jvm-options>
>        <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
>        <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
>
>
>
> and Kernel Parameters are
>
> ------ Shared Memory Limits --------
> max number of segments = 4096
> max seg size (kbytes) = 1048576
> max total shared memory (kbytes) = 8388608
> min seg size (bytes) = 1
>
> ------ Semaphore Limits --------
> max number of arrays = 512
> max semaphores per array = 1000
> max semaphores system wide = 32000
> max ops per semop call = 32
> semaphore max value = 32767
>
> ------ Messages: Limits --------
> max queues system wide = 2048
> max size of message (bytes) = 65536
> default max size of queue (bytes) = 65536
>
>
>
> Thanks in Advance.
>
> Ram
> [Message sent by forum member 'legend_ram' (legend_ram)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339125
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Please help to test this application:
http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces