eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
377 stars 143 forks source link

Unable to start cluster instances with 64 Bits JDK1.5.0 #6279

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 15 years ago

Build: GlassFish V2.1 B51 JDK Used: 1.5.0_16 B02

./java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)

Steps Done


1) Installed 64 bit JDK 1.5.0_16 B02 on Solaris 10 Sparc 2) Installed GlassFish V2.1 B51 Cluster Profile 3) Created new domain, nodeagents, and 3 instance cluster. Stopped domain. 4) Added -d64 and changed $AS_JAVA/bin/java to $AS_JAVA/bin/sparcv9/java in asadmin script of /export/home/appserver/bin on all the instance hosting machines. 5) Added -d64 jvm-option in domain.xml of domain and cluster.

-d64

6) Changed the following line of startserv scripts of domain and all instances to the following: JAVA="$JAVA_HOME"/bin/sparcv9/java

The steps #4 to #6 were taken from Sailfin issue # 1131 which is also the same issue seen in sailfin.

The domain and nodeagents were able to start successfully. But I was unable to start the cluster instances. The following "StackOverFlow" error was seen in the server logs of all 3 instances.

Sep 23, 2008 6:00:32 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher build Command INFO: /export/home/jdk/jdk150_16_64bit/bin/java -Dcom.sun.aas.instanceRoot=/export/home/appserver/nodeagents/agent1/instance1 -DHTTP_LISTENER_PORT=38080 -DHTTP_SSL_LISTENER_PORT=38181 -DIIOP_LISTENER_PORT=33700 -DIIOP_SSL_LISTENER_PORT=33820 -DIIOP_SSL_MUTUALAUTH_PORT=33920 -DJMS_PROVIDER_PORT=37676 -DJMX_SYSTEM_CONNECTOR_PORT=38686 -Dcom.sun.aas.ClassPathPrefix= -Dcom.sun.aas.ClassPathSuffix= -Dcom.sun.aas.ServerClassPath= -Dcom.sun.aas.classloader.appserverChainJars.ee= -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-sv c.jar -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appser v-ant.jar -Dcom.sun.aas.classloader.optionalOverrideableChain.ee= Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices tools.jar -Dcom.sun.aas.classloader.serverClassPath.ee=Does not exist/lib/hadbjdbc4.jar,/expo rt/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,Does not exist/lib/dbstate.jar,Do es not exist/lib/hadbm.jar,Does not exist/lib/hadbmgt.jar,/opt/SUNWmfwk/lib/mfwk_in strum_tk.jar -Dcom.sun.aas.classloader.serverClassPath=/export/home/appserver/lib/install/applic ations/jmsra/imqjmsra.jar,/export/home/appserver/imq/lib/jaxm-api.jar,/export/home/ appserver/imq/lib/fscontext.jar,/export/home/appserver/imq/lib/imqbroker.jar,/expor t/home/appserver/imq/lib/imqjmx.jar,/export/home/appserver/lib/ant/lib/ant.jar,/exp ort/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-pl ugin.jar,Does not exist/lib/dbstate.jar,Does not exist/lib/hadbjdbc4.jar,jgroups-al l.jar,/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/export/home/jdk/jdk150_16_64b it/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.j ar,com-sun-commons-logging.jar,/export/home/appserver/imq/lib/jaxm-api.jar,/export/ home/appserver/imq/lib/fscontext.jar,/export/home/appserver/imq/lib/imqbroker.jar,/ export/home/appserver/imq/lib/imqjmx.jar,/export/home/appserver/imq/lib/imqxm.jar,w ebservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optiona l.jar,/export/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv -rt.jar,appserv-admin.jar,appserv-cmp.jar,/export/home/appserver/updatecenter/lib/u pdatecenter.jar,/export/home/appserver/jbi/lib/jbi.jar,/export/home/appserver/imq/l ib/imqjmx.jar,/export/home/appserver/lib/ant/lib/ant.jar,dbschema.jar -Dcom.sun.aas.configName=richaccess-sparc-cluster-config -Dcom.sun.aas.configRoot=/export/home/appserver/config -Dcom.sun.aas.defaultLogFile=/export/home/appserver/nodeagents/agent1/instance1/log s/server.log -Dcom.sun.aas.domainName=sqe-domain -Dcom.sun.aas.installRoot=/export/home/appserver -Dcom.sun.aas.instanceName=instance1 -Dcom.sun.aas.processLauncher=SE -Dcom.sun.aas.promptForIdentity=true -Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPlugg ableFeatureImpl -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.con fig.serverbeans.AppserverConfigEnvironmentFactory -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet -Dcom.sun.enterprise.server.ss.ASQuickStartup=false -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar -Dcom.sun.enterprise.taglisteners=jsf-impl.jar -Dcom.sun.updatecenter.home=/export/home/appserver/updatecenter -Ddomain.name=sqe-domain -Djava.endorsed.dirs=/export/home/appserver/lib/endorsed -Djava.ext.dirs=/export/home/jdk/jdk150_16_64bit/lib/ext:/export/home/jdk/jdk150_16 _64bit/jre/lib/ext:/export/home/appserver/nodeagents/agent1/instance1/lib/ext:/expo rt/home/appserver/javadb/lib:/export/home/appserver/lib/jdbcdrivers -Djava.library.path=/export/home/appserver/lib/sparcv9/sparcv9:/export/home/appserv er/lib/sparcv9:/export/home/appserver/imq/lib/sparcv9::/export/home/appserver/lib/s parcv9:/export/home/appserver/lib:/export/home/appserver/lib -Djava.security.auth.login.config=/export/home/appserver/nodeagents/agent1/instance 1/config/login.conf -Djava.security.policy=/export/home/appserver/nodeagents/agent1/instance1/config/se rver.policy -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager -Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServer Builder -Djavax.net.ssl.keyStore=/export/home/appserver/nodeagents/agent1/instance1/config/ keystore.jks -Djavax.net.ssl.trustStore=/export/home/appserver/nodeagents/agent1/instance1/confi g/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djmx.invoke.getters=true -server -XX:+UnlockDiagnosticVMOptions -XX:MaxPermSize=192m -XX:NewRatio=2 -d64 -Xss128k -Xmx768m -Xloggc:/export/home/appserver/nodeagents/agent1/instance1/logs/gc.log -XX:+DisableExplicitGC -XX:+LogVMOutput -XX:LogFile=/export/home/appserver/nodeagents/agent1/instance1/logs/jvm.log -cp /export/home/appserver/lib/jhall.jar:/export/home/appserver/lib/appserv-launch.jar com.sun.enterprise.server.PELaunch start Exception in thread "main" java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(URLClassPath.java:313) at sun.misc.URLClassPath.getLoader(URLClassPath.java:290) at sun.misc.URLClassPath.getResource(URLClassPath.java:160) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader. java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader. java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader. java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader. java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at java.util.logging.LogManager$1.run(LogManager.java:167) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.(LogManager.java:156) at java.util.logging.Logger.getLogger(Logger.java:295) at com.sun.logging.LogDomains.getLogger(LogDomains.java:240) at com.sun.enterprise.util.i18n.StringManagerBase.(StringManagerBas e.java:101) at com.sun.enterprise.server.PEMain.(PEMain.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.server.PELaunch.main(PELaunch.java:413)

Environment

Operating System: Solaris Platform: Sun

Affected Versions

[9.1.1]

glassfishrobot commented 5 years ago
glassfishrobot commented 15 years ago

@glassfishrobot Commented meenap said: Issue 6279 is also seen in sailfin, issue 1131

glassfishrobot commented 15 years ago

@glassfishrobot Commented meenap said: Removing GlassFish issue 1131 dependency from this issue.

This issue 6279 is similar to SailFin issue 1131 https://sailfin.dev.java.net/issues/show_bug.cgi?id=1131

glassfishrobot commented 15 years ago

@glassfishrobot Commented meenap said: The following flag "-Xss128k" is explicity set in the cluster-config for stress testing.

After removing this flag, I was able to start the cluster successfully. Also tried increasing it to "-Xss256k" which also started the cluster successfully.

glassfishrobot commented 15 years ago

@glassfishrobot Commented harpreet said: Please scrub issue and see if it is critical to v2.1.

glassfishrobot commented 15 years ago

@glassfishrobot Commented meenap said: Did the test on B52 on Solaris 10 Sparc with 64 Bit JDK1.5.0_16 B02 after removing the flag "-Xss128k". The Richaccess application successfully completed 24X7. Marking bug as resolved.

glassfishrobot commented 15 years ago

@glassfishrobot Commented meenap said: Closing Bug

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-6279

glassfishrobot commented 15 years ago

@glassfishrobot Commented Reported by meenap

glassfishrobot commented 15 years ago

@glassfishrobot Commented Marked as cannot reproduce on Wednesday, October 22nd 2008, 6:16:21 am