This discussion is archived
0 Replies Latest reply: Mar 7, 2013 12:02 AM by 995387 RSS

Usage of the G1 Garbbage collector

995387 Newbie
Currently Being Moderated
We wanted to test the G1 garbage collector that is available from the JDK1. 6 version with the Build 14, when tested the app that was previously running with the CMS (Concurrent Mark and Sweep) The time that is taken for the executtion of the application is less than that of when used with the G1 Collector, we did not configure any of the GC interval also.
But the Execution times are on the higher rate, per the documentation this will reduce the Execution time so that the apps execute faster.

Using MarkAndSweep
Total Time Taken for publish method call for IRIS 643 For PersonID 337166474163

Using G1 GC
Total Time Taken for publish method call for IRIS 864 For PersonID187544101467
Total Time Taken for publish method call for IRIS 697 For PersonID151493512468

Using MarkAndSweep
Total Time Taken for publish method call for hornetQ 248 For PersonID 337166474163

Using G1 GC
Total Time Taken for publish method call for hornetQ 395 For PersonID187544101467
Total Time Taken for publish method call for hornetQ 271 For PersonID151493512468


Java Opt for G1 GC

-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC

Is there some thing that is wrong configuration we are using, the app is running on the JBOSS version 7.1.1

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points