Question
3
Replies
610
Views
Posted: April 12, 2018
Last activity: May 15, 2018
Closed
Solved
-Xgcpolicy:balanced or gencon or optavgpause JVM argument. Any suggestions on which option is ideal to use?
We are in process of upgrading to Pega 7.3.1. We need to set -Xgcpolicy JVM argument. Please recommend the best option to go with, balanced or gencon or optavgpause. We are on WebSphere 8.5.5
***Edited by Moderator Marissa to add SR Details***
Pega doesn't have an official suggestion for garbage collection policy. Normally, the default (gencon) works fine, and I wouldn't change it unless you run into issues specifically with garbage collection, which is rare. Gencon is good for applications with many short-lived objects, which describes Pega well.
If you have specific performance needs, balanced or optavgpause might be useful, but pretty much all you can do here is move around how often and for how long garbage collection occurs. Gencon is a good balance between all the various performance needs, which is why it's default.
IBM's page on IBM JAVA GC options: https://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.lnx.80.doc/diag/appendixes/cmdline/xgcpolicy.html