Jump to content
Excelsior Forums
Sign in to follow this  
JohnDonath

How do I configure garbage collection options in JET?

Recommended Posts

I'd like to have some of the garbage collection options that I can configure with the sun JVM available in my JET application.  For example, I'd like generational garbage collection with controls over the size of the nursery and the aged memory spaces.  I'd also like to impose some of the garbage collection controls, and print the runtime garbage collection details.  I was wondering how we can include these items in an application created by JET.  Note that most of them in sun begin with -X.  Below is the list of parameters that I'd like to include:

-DLOG4J_CONFIG_FILE=./log4j.xml

-server

-Xloggc:gclog.txt

-XX:+UseLargePages

-XX:CompileThreshold=

-XX:CMSInitiatingOccupancyFraction=

-XX:CMSIncrementalDutyCycle=

-XX:CMSIncrementalDutyCycleMin=

-XX:+UseConcMarkSweepGC

-XX:MaxDirectMemorySize=

-XX:PermSize=

-XX:MaxPermSize=

-XX:NewSize=

-XX:MaxNewSize=

-XX:SurvivorRatio=

-XX:+UseCMSCompactAtFullCollection

-XX:SoftRefLRUPolicyMSPerMB=

-XX:+PrintGCApplicationStoppedTime

-XX:+PrintGCDetails

-XX:+PrintGCTimeStamps

-Dsun.rmi.dgc.clientBak.gcInterval=

-Dsun.rmi.dgc.server.gcInterval=

-Xms

-Xmx

Share this post


Link to post
Share on other sites

Excelsior JET has its own implementation of memory management and garbage collection, so almost all settings for HotSpot that you listed is not applicable to Excelsior JET at all.  Related options for Excelsior JET is highlighted at this Knowledge Base article: "HOWTO: Fine tune application memory footprint" -- http://www.excelsior-usa.com/kb/000025.html.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×