Reputation: 20190
We started with the setting for our JVM as(I inherited this and haven't modified it except trying incremental mode)....
-XX:+UseConcMarkSweepGC
-XX:ParallelGCThreads=1
We are on two virtual cpus. I want way more gc pauses or what not rather than a getting behind one that stops the world. Supposedly CMSIncrementalMode is deprecated though I tried it anyways and it didn't work.
I am trying to work off of https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/cms.html
I am having trouble understand what they mean by duty cycle. I just want more pauses rather than a big one. How can I tweak the commands to do this?
Even though the docs state this "Note that the incremental mode is being deprecated in Java SE 8 and may be removed in a future major release", I don't mind using the incremental if I need to for now.
Any ideas on how to configure this or what they mean by duty cycle?
NOTE: We deploy every two weeks so even right after deployment, I prefer not to have big gc pauses as pacing adapts.
thanks, Dean
Upvotes: 1
Views: 504
Reputation: 571
If you use G1GC then you can use XX:MaxGCPauseMillis
and set a lower value if default value is not desirable for you.
Upvotes: 1