Skip to main content

What is an ideal jvm setup for my glassfish v3 server?

1 reply [Last post]
amalhotra159
Offline
Joined: 2010-06-03

I am setting up glassfish v3 for a production deployment. This is what my jvm-options look like:

-XX:+UnlockDiagnosticVMOptions
-XX:+LogVMOutput
-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log
-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed
-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
-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
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.port=40959
-Dosgi.shell.telnet.maxconn=1
-Dosgi.shell.telnet.ip=127.0.0.1
-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/
-Dfelix.fileinstall.poll=5000
-Dfelix.fileinstall.debug=1
-Dfelix.fileinstall.bundles.new.start=true
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-XX:NewRatio=2
-XX:MaxPermSize=1024m
-XX:+UseParallelOldGC
-XX:ParallelGCThreads=4
-XX:+DisableExplicitGC
-XX:+AggressiveHeap
-Xmx2048m
-Xms2048m
-Xss128k
-server

We are running Solaris 10 on a 64-bit 2-Quad Core (8 CPUs) x86 16Gb RAM machine. We have a mysql server running that uses no more than 2Gb (worst case scnario) but need 3 domains/instances for glassfish. The problem is if I set Xms to less than 2048m, glassfish says initial heap is too small. Any comments on the jmv options and any idea why I cant set a lower Xms value? I have a feeling that it has something to do with AggressiveHeap ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alexis Moussine-Pouchkine

did you follow http://java.dzone.com/articles/putting-glassfish-v3 ?
AggressiveHeap pretty much assumes that no other process is using the machine...
-Alexis

On 4 juin 2010, at 06:29, glassfish@javadesktop.org wrote:

> I am setting up glassfish v3 for a production deployment. This is what my jvm-options look like:
>
> -XX:+UnlockDiagnosticVMOptions
> -XX:+LogVMOutput
> -XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log
> -Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed
> -Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
> -Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
> -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
> -Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
> -Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
> -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
> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
> -DANTLR_USE_DIRECT_CLASS_LOADING=true
> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
> -Dosgi.shell.telnet.port=40959
> -Dosgi.shell.telnet.maxconn=1
> -Dosgi.shell.telnet.ip=127.0.0.1
> -Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/
> -Dfelix.fileinstall.poll=5000
> -Dfelix.fileinstall.debug=1
> -Dfelix.fileinstall.bundles.new.start=true
> -Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
> -XX:NewRatio=2
> -XX:MaxPermSize=1024m
> -XX:+UseParallelOldGC
> -XX:ParallelGCThreads=4
> -XX:+DisableExplicitGC
> -XX:+AggressiveHeap
> -Xmx2048m
> -Xms2048m
> -Xss128k
> -server
>
> We are running Solaris 10 on a 64-bit 2-Quad Core (8 CPUs) x86 16Gb RAM machine. We have a mysql server running that uses no more than 2Gb (worst case scnario) but need 3 domains/instances for glassfish. The problem is if I set Xms to less than 2048m, glassfish says initial heap is too small. Any comments on the jmv options and any idea why I cant set a lower Xms value? I have a feeling that it has something to do with AggressiveHeap ?
> [Message sent by forum member 'amalhotra159']
>
> http://forums.java.net/jive/thread.jspa?messageID=472704
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net