Skip to main content
Known Participant
February 28, 2013
質問

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

  • February 28, 2013
  • 返信数 2.
  • 11982 ビュー

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.

    このトピックへの返信は締め切られました。

    返信数 2

    Legend
    November 5, 2013

    Hi Peter,

    You may find this reference interesting:

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

    Regards, Carl.

    Legend
    March 1, 2013

    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