users@glassfish.java.net

Re: Glassfisg JVM exits no jvm.log

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Thu, 15 Dec 2011 18:08:55 -0500

In my case I am now pretty certain that the problem is a classic
StackOverflowError due to recursion gone amuck. I wish I had the jvm log
so I would not have spent hours coming to this realization. So JVM crash
is expected behavior for my errant code but where in the world is the
jvm.log file?

On 12/15/2011 01:37 PM, Gustavo Henrique Orair wrote:
> I also have problems with Glassfish server JVM process dies / crashes
> / exits for no apparent reason.
>
> ---------------------------------------------------------------------------------------------------------------------
> Gustavo Henrique Orair
> Mestre em Ciência da Computação - MSc in Computer Science
> Universidade Federal de Minas Gerais
> Celular/Cell phone: 55-31-85157887
> ------------------------------------------------------------------------------------------------------------------
>
>
> 2011/12/15 Farrukh Najmi <farrukh_at_wellfleetsoftware.com
> <mailto:farrukh_at_wellfleetsoftware.com>>
>
> On 12/15/2011 10:06 AM, Tom Mueller wrote:
>
> One possible reason for not getting a jvm.log file is that the
> default JVM option that causes this to be created was removed
> in 3.1 because it is incompatible with other JVMs. In GF 3.0,
> this option is as follows:
>
> -XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log
>
> To add it into a 3.1 install, run:
>
> asadmin create-jvm-options
> '-XX\:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log'
>
> (note: the : has to be escaped with \)
>
> Tom
>
>
> Hi Tom,
>
> Thank you for your help.
>
> Above did not do seem to work (no jvm.log file produced). Note
> that I am currently testing with GF 3.1.2 latest promoted build
> (Dec 13th).
> What am I missing?
>
> Below are all the jvm-options in my domain.xml file:
>
> <java-config debug-options="-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009"
> system-classpath="" classpath-suffix="">
> <jvm-options>-client</jvm-options>
> <jvm-options>-Djava.awt.headless=true</jvm-options>
> <jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder</jvm-options>
> <jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
> <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${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>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</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>
> <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</jvm-options>
> <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
> <jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
> <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.port=6666</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
> <jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
> <jvm-options>-Dgosh.args=--nointeractive</jvm-options>
> <jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
> <jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
> <jvm-options>-Dfelix.fileinstall.log.level=2</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
> <jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
> <jvm-options>-XX:NewRatio=2</jvm-options>
> <jvm-options>-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log</jvm-options>
> <jvm-options>-XX:PermSize=512m</jvm-options>
> <jvm-options>-XX:MaxPermSize=1024m</jvm-options>
> <jvm-options>-Xms200m</jvm-options>
> <jvm-options>-Xmx1500m</jvm-options>
> <jvm-options>-XX:+CMSClassUnloadingEnabled</jvm-options>
> </java-config>
>
>
>
>
> --
> Regards,
> Farrukh Najmi
>
> Web: http://www.wellfleetsoftware.com
>
>
>


-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com