eclipse-ee4j / glassfish

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

restart-domain has 2 java processes with use a lot of memory #21383

Closed glassfishrobot closed 7 years ago

glassfishrobot commented 9 years ago

my glassfish runs on the windows server 2012 R2 as a service when i try to restart the a domain by asadmin it restart not correct.

I found 2 java processes with use a lot of memory after the restart 1. "C:\Program Files\Java\jdk1.8.0_45\bin\java.exe" cp D:/DEVELOPMENT/Software/glassfish4/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:+UseCompressedOops -XX:MaxPermSize=512m -Xmx2048m -server -javaagent:/DEVELOPMENT/Software/glassfish4/glassfish/lib/monitor/flashlight-agent.jar -Djavax.xml.accessExternalSchema=all -Djavax.net.ssl.trustStore=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/cacerts.jks -Djdk.corba.allowOutputStreamSubclass=true -Dfelix.fileinstall.dir=D:\DEVELOPMENT\Software\glassfish4\glassfish/modules/autostart/ -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dcom.sun.aas.installRoot=D:\DEVELOPMENT\Software\glassfish4\glassfish -Dfelix.fileinstall.poll=5000 -Djava.endorsed.dirs=D:\DEVELOPMENT\Software\glassfish4\glassfish/modules/endorsed;D:\DEVELOPMENT\Software\glassfish4\glassfish/lib/endorsed -Djava.security.policy=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/server.policy -Dosgi.shell.telnet.maxconn=1 -Dfelix.fileinstall.bundles.startTransient=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dfelix.fileinstall.log.level=2 -Djavax.net.ssl.keyStore=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/keystore.jks -Djava.security.auth.login.config=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/login.conf -Dfelix.fileinstall.disableConfigSave=false -Dfelix.fileinstall.bundles.new.start=true -Dcom.sun.aas.instanceRoot=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL -Dosgi.shell.telnet.port=6666 -Dgosh.args=nointeractive -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Dosgi.shell.telnet.ip=127.0.0.1 -DANTLR_USE_DIRECT_CLASS_LOADING=true -Djava.awt.headless=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true "-Djava.ext.dirs=C:\Program Files\Java\jdk1.8.0_45/lib/ext;C:\Program Files\Java\jdk1.8.0_45/jre/lib/ext;D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/lib/ext" -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver "-Djava.library.path=C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0/api;C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0/lib64;C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0;D:/DEVELOPMENT/Software/glassfish4/glassfish/lib;C:/ProgramData/Oracle/Java/javapath;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files/Microsoft SQL Server/120/DTS/Binn;C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/110/Tools/Binn;C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn;C:/Program Files/Microsoft SQL Server/120/Tools/Binn;C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/ManagementStudio;C:/Program Files (x86)/Microsoft SQL Server/120/DTS/Binn;C:/Program Files/Mercurial;C:/Program Files (x86)/MSBuild/12.0/Bin;C:/Program Files/TortoiseSVN/bin;C:/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit" com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir D:/DEVELOPMENT/Software/glassfish4/glassfish/domains/AP10DVL -read-stdin true -asadmin-args --host,,,localhost,,,port,,,4848,,,user,,,admin,,,passwordfile,,,D:/temp/glassfish_passwords.txt,,,secure=false,,,terse=false,,,echo=false,,,interactive=false,,,start-domain,,,verbose=false,,,watchdog=true,,,debug=false,,,-domaindir,,,D:\DEVELOPMENT\Software\glassfish4\glassfish\domains,,,AP10DVL -domainname AP10DVL -instancename server -type DAS -verbose false -asadmin-classpath D:/DEVELOPMENT/Software/glassfish4/glassfish/modules/admin-cli.jar -debug false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain

2. "C:\Program Files\Java\jdk1.8.0_45\bin\java.exe" cp D:/DEVELOPMENT/Software/glassfish4/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:+UseCompressedOops -XX:MaxPermSize=512m -Xmx2048m -server -javaagent:/DEVELOPMENT/Software/glassfish4/glassfish/lib/monitor/flashlight-agent.jar -Djavax.xml.accessExternalSchema=all -Djavax.net.ssl.trustStore=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/cacerts.jks -Djdk.corba.allowOutputStreamSubclass=true -Dfelix.fileinstall.dir=D:\DEVELOPMENT\Software\glassfish4\glassfish/modules/autostart/ -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dcom.sun.aas.installRoot=D:\DEVELOPMENT\Software\glassfish4\glassfish -Dfelix.fileinstall.poll=5000 -Djava.endorsed.dirs=D:\DEVELOPMENT\Software\glassfish4\glassfish/modules/endorsed;D:\DEVELOPMENT\Software\glassfish4\glassfish/lib/endorsed -Djava.security.policy=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/server.policy -Dosgi.shell.telnet.maxconn=1 -Dfelix.fileinstall.bundles.startTransient=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dfelix.fileinstall.log.level=2 -Djavax.net.ssl.keyStore=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/keystore.jks -Djava.security.auth.login.config=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/config/login.conf -Dfelix.fileinstall.disableConfigSave=false -Dfelix.fileinstall.bundles.new.start=true -Dcom.sun.aas.instanceRoot=D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL -Dosgi.shell.telnet.port=6666 -Dgosh.args=nointeractive -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Dosgi.shell.telnet.ip=127.0.0.1 -DANTLR_USE_DIRECT_CLASS_LOADING=true -Djava.awt.headless=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true "-Djava.ext.dirs=C:\Program Files\Java\jdk1.8.0_45/lib/ext;C:\Program Files\Java\jdk1.8.0_45/jre/lib/ext;D:\DEVELOPMENT\Software\glassfish4\glassfish\domains\AP10DVL/lib/ext" -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver "-Djava.library.path=C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0/api;C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0/lib64;C:/Program Files/IBM/OnDemand Web Enablement Kit/V9.0;D:/DEVELOPMENT/Software/glassfish4/glassfish/lib;C:/Program Files/Java/jdk1.8.0_45/jre/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/ProgramData/Oracle/Java/javapath;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files/Microsoft SQL Server/120/DTS/Binn;C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/110/Tools/Binn;C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn;C:/Program Files/Microsoft SQL Server/120/Tools/Binn;C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/ManagementStudio;C:/Program Files (x86)/Microsoft SQL Server/120/DTS/Binn;C:/Program Files/Mercurial;C:/Program Files (x86)/MSBuild/12.0/Bin;C:/Program Files/TortoiseSVN/bin;C:/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit;D:/DEVELOPMENT/Software/glassfish4/glassfish/domains/AP10DVL/config" com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir D:/DEVELOPMENT/Software/glassfish4/glassfish/domains/AP10DVL -read-stdin true -asadmin-args --host,,,localhost,,,port,,,4848,,,user,,,admin,,,passwordfile,,,D:/temp/glassfish_passwords.txt,,,secure=false,,,terse=false,,,echo=false,,,interactive=false,,,start-domain,,,verbose=false,,,watchdog=true,,,debug=false,,,-domaindir,,,D:\DEVELOPMENT\Software\glassfish4\glassfish\domains,,,AP10DVL -domainname AP10DVL -instancename server -type DAS -verbose false -asadmin-classpath D:/DEVELOPMENT/Software/glassfish4/glassfish/modules/admin-cli.jar -debug false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain

When i try to stop the service it will not stop, I have to kill them

After i have to killed all processes from the service I have also delete the "generated" folder. Now works the server correct after a restart

Environment

java8 windows server 2012 r2

Affected Versions

[4.1]

glassfishrobot commented 6 years ago
glassfishrobot commented 7 years ago

@glassfishrobot Commented @YRutuja said: Can you try with 4.1.1 and see if you face the same problem?

glassfishrobot commented 7 years ago

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

glassfishrobot commented 9 years ago

@glassfishrobot Commented Reported by tiran1984

glassfishrobot commented 7 years ago

@yaminikb Commented Not reproducible and user doesn't exist on GitHub, hence closing it.