欢迎您光临本小站。希望您在这里可以找到自己想要的信息。。。

GC concurrent-mark-reset-for-overflow

java water 1292℃ 0评论

欢迎来到 JVM 参数MarkStackSize的讨论专区

参数名称

MarkStackSize

取值类型

unsigned int

参数说明

Size of marking stack

用法及建议

  • 使用该参数的正确姿势是-XX:MarkStackSize=___

默认值

平台/版本JDK6JDK7JDK8
Linux419430441943044194304
MacOS419430441943044194304
Windows419430441943044194304

GC concurrent-mark-reset-for-overflow : This indicates that the global marking stack had became full and there was an overflow of the stack. Concurrent marking detected this overflow and had to reset the data structures to start the marking again

So increasing -XX:MarkStackSize is one quick win.

Few observation from your VM parameters:

  1. The G1 GC is an adaptive garbage collector with defaults that enable it to work efficiently without modification. Have a quick look at oracle documentation page on G1GC
  2. Key parameters to set : -XX:MaxGCPauseMillis, -XX:G1HeapRegionSize,-XX:ParallelGCThreads=n, -XX:ConcGCThreads=n Leave everything else to default values.
  3. If your heap size is 16 GB, the ideal region size should be 8 MB. Make sure that you maintain 2048 regions.
  4. Revisit your pause time goal. -XX:MaxGCPauseMillis. If 200ms is unrealistic for 16 GB heap, set this value as properly.
  5. Official documentation page recommends the way to set XX:ParallelGCThreads=n, -XX:ConcGCThreads=n depending on number of cores in your machine.-XX:ParallelGCThreads=n: Sets the value of the STW worker threads. Sets the value of n to the number of logical processors. The value of n is the same as the number of logical processors up to a value of 8.-XX:ConcGCThreads=n:Sets the number of parallel marking threads. Sets n to approximately 1/4 of the number of parallel garbage collection threads (ParallelGCThreads).
  6. Revisit -XX:InitialHeapSize=17179869184 -XX:InitiatingHeapOccupancyPercent=45 -XX:G1ReservePercent=20 parameters. Leave them to default values unless you have pressing need to change them.

https://www.jianshu.com/p/92bfe89834dc

转载请注明:学时网 » GC concurrent-mark-reset-for-overflow

喜欢 (0)or分享 (0)

您必须 登录 才能发表评论!