disable lastGc

disable  using lastGc, it gives strange results...
This commit is contained in:
Shay Banon 2012-06-16 15:40:44 +02:00
parent 040fa2581a
commit 0c7690d105
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ public class JvmStats implements Streamable, Serializable, ToXContent {
} else if (info.versionAsInteger() > 170) {
defaultEnableLastGc = true;
}
// always disable lastG, some reports it gives are strange...
defaultEnableLastGc = false;
boolean enableLastGc = Booleans.parseBoolean(System.getProperty("monitor.jvm.enable_last_gc"), defaultEnableLastGc);
if (enableLastGc) {