users@glassfish.java.net

Re: Run as Windows service?

From: <glassfish_at_javadesktop.org>
Date: Sun, 04 Nov 2007 11:25:11 PST

I found the difference between specifying -Xrs in domain.xml versus processLauncher.xml
Below are the actual JVM options sent to the DAS JVM at launch. Note that the order of -Xrs is different.

I would guess that the order should NOT matter. But it apparently does. We ran into headaches before because the order of options DOES matter: UnlockDiag.... *must* appear before the LogVMOutput option.

Perhaps there is another undocumented order dependency here?!?


**** -Xrs set in domain.xml ******
-XX:+UnlockDiagnosticVMOptions
-Xrs
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=D:/as/domains/domain1/logs/jvm.log

*** -Xrs set in processLauncher.xml ****

-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-Xrs
-XX:LogFile=D:/as/domains/domain1/logs/jvm.log
[Message sent by forum member 'bnevins' (bnevins)]

http://forums.java.net/jive/thread.jspa?messageID=243709