Created on 05-02-2016 11:51 AM - edited 09-16-2022 03:16 AM
Hi,
We recently started getting the GC warnings on our Yarn and all nodes of Production cluster frequently, so want to avoid this warnings. Please someone can help us to resolve this issue as soon as possible.
Following is the warning:
Test of whether this role spends too much time in garbage collection. Concerning
Created 05-02-2016 05:24 PM
you will need to append "
-Xms512m -Xmx1024m -XX:PermSize=216m -XX:MaxPermSize=512m
"
to the property Java Configuration Options for Node Manager, and then restart Node Managers. You'll want to change the numbers for -Xmx and -XX:MaxPermSize to values bigger than what you currently have for Node Manager. Please try to do this in a test enviroment first as this may impact on your production cluster.
Created 05-02-2016 05:50 PM
Can you please be more specific to this, like how to find out the current setting for following:
-Xms512m -Xmx1024m -XX:PermSize=216m -XX:MaxPermSize=512m
Created 05-02-2016 06:04 PM
Created on 05-04-2016 10:47 AM - edited 05-04-2016 10:48 AM
Ok we applied the following configuration as recommended on our Dev Cluster and are seeing no issues.
property: Java Configuration Options for NodeManager:
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -Xms512m -Xmx2048m -XX:PermSize=216m -XX:MaxPermSize=512m
But the point to note is GC Duration warnings had never happened on this cluster, it happened on our Production cluster.
So shall we go ahead and make changes on Production cluster or there are any other things we have to consider ?
Please any suggestions
Created 05-04-2016 07:23 PM
Is it possible for you to try the same settings in your production cluster? If your dev cluster is very close to production server in terms of workload, then I'd guess this will alleviate gc pause in your production cluster as well.