Skip to main content
Known Participant
Feb 28, 2013 10:03 PM UTC
Question

Has anyone used JVM argument -XX:+UseG1GC for garbage collection on ColdFusion?

I am hesitant to try to change the JVM Arguments. In the past ColdFusion has failed to restart for me when I changed them. Any advice would be welcome.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Legend
    Nov 5, 2013 11:48 PM UTC

    Hi Peter,

    You may find this reference interesting:

    http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/G1GettingStarted/index.html

    Regards, Carl.

    Translate
    Legend
    Mar 1, 2013 2:12 AM UTC

    Yes Peter have one site running G1GC garbage first collector. Suggest perform some logging or monitoring to know altering GC has good or bad impact.

    With G1GC allow for the heap to be much larger, it would be fair to say it is more memory persistent than PARALLELGC which is effective at keeping the heap evacuated. Example JVM args only, where this may work well with PARALLELGC:

    -Xmx4096 -XX:+UseParallelGC

    this may suit better with G1GC given same load:

    -Xmx8192 -XX:+UseG1GC

    As always take a copy of your JVM.CONFIG before changes so you got a backup.

    HTH, Carl.

    PS you might like these references

    http://docs.oracle.com/javase/7/docs/technotes/guides/vm/G1.html

    http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html

    http://download.oracle.com/javase/7/docs/technotes/guides/vm/G1.html

    http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

    Translate