users@glassfish.java.net

releasing ports faster

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Tue, 03 Oct 2006 15:51:50 -0700

I am working on an issue with the NetBeans profiler and the application
server built from the GlassFish Project codebase.

If I repeatedly 'Profile Main Project' the IDE appears to restart the
app server before the instance that the NetBeans profiler stopped is
completely shutdown....

I think this is the case because I see this output in the log..


[#|2006-10-03T15:39:12.536-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=13;_ThreadName=***
Profiler Agent Communication Thread;|Profiler Agent: Connection with
agent closed|#]

[#|2006-10-03T15:39:17.397-0700|INFO|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|
/home/vbk/Desktop/jdk1.5.0_06/jre/../bin/java
-client
-agentpath:/home/vbk/release55z/nbbuild/netbeans/profiler1/lib/deployed/jdk15/linux/libprofilerinterface.so=/home/vbk/release55z/nbbuild/netbeans/profiler1/lib,5140
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=/home/vbk/glassfish/domains/domain1/logs/server.log
-Dnbprofiler.agentid=718456444
-Djava.endorsed.dirs=/home/vbk/glassfish/lib/endorsed
-Djava.security.policy=/home/vbk/glassfish/domains/domain1/config/server.policy
-Djava.security.auth.login.config=/home/vbk/glassfish/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=/home/vbk/glassfish/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=/home/vbk/glassfish/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=/home/vbk/Desktop/jdk1.5.0_06/jre/../jre/lib/ext:/home/vbk/glassfish/domains/domain1/lib/ext:/home/vbk/glassfish/javadb/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dhttp.proxyHost=webcache.central.sun.com
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=webcache.central.sun.com
-Dhttps.proxyPort=8080
-Dhttp.nonProxyHosts=localhost|127.0.0.1|ubuntuabihsot|localhost.localdomain
-Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,/home/vbk/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.configName=server-config
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=/home/vbk/glassfish/domains/domain1
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/home/vbk/Desktop/jdk1.5.0_06/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,/home/vbk/glassfish/imq/lib/jaxm-api.jar,/home/vbk/glassfish/imq/lib/fscontext.jar,/home/vbk/glassfish/imq/lib/imqbroker.jar,/home/vbk/glassfish/imq/lib/imqjmx.jar,/home/vbk/glassfish/imq/lib/imqxm.jar,/home/vbk/glassfish/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,/home/vbk/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
-Dcom.sun.aas.classloader.serverClassPath=/home/vbk/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/home/vbk/glassfish/imq/lib/jaxm-api.jar,/home/vbk/glassfish/imq/lib/fscontext.jar,/home/vbk/glassfish/imq/lib/imqbroker.jar,/home/vbk/glassfish/imq/lib/imqjmx.jar,/home/vbk/glassfish/lib/ant/lib/ant.jar,/home/vbk/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=/home/vbk/glassfish/config
-Djava.library.path=/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386/client:/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386:/home/vbk/Desktop/jdk1.5.0_06/jre/../lib/i386:/home/vbk/glassfish/lib:/usr/lib/lwp:/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386/client:/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386:/home/vbk/Desktop/jdk1.5.0_06/jre/../lib/i386:/home/vbk/glassfish/lib:/home/vbk/glassfish/lib:/home/vbk/glassfish/lib:/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386/client:/home/vbk/Desktop/jdk1.5.0_06/jre/lib/i386:/home/vbk/Desktop/jdk1.5.0_06/jre/../lib/i386
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.installRoot=/home/vbk/glassfish
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-cp
:/home/vbk/glassfish/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start|#]

Profiler Agent: Initializing...
Profiler Agent: Options:
>/home/vbk/release55z/nbbuild/netbeans/profiler1/lib,5140<
Profiler Agent: Initialized succesfully
[#|2006-10-03T15:39:18.740-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting
Sun Java System Application Server Platform Edition 9.0_01 (build b10)
...|#]

Profiler Agent: 250 classes cached.
[#|2006-10-03T15:39:19.853-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;3700;|A
conflict occured on port 3700 . Server is shutting down.|#]

[#|2006-10-03T15:39:20.656-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=11;_ThreadName=Thread-4;|sending
notification to server...server|#]

[#|2006-10-03T15:39:20.658-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=11;_ThreadName=Thread-4;|Server
shutdown complete.|#]

If I 'Profile Main Project' again, things seem to work...

It isn't a huge issue, but it would be nice to find out if there is a
way to shorten up the time that the dying app server process holds ports...