Skip to content

Commit

Permalink
filter out crappy gc reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Jun 24, 2011
1 parent a9a8095 commit 89a46d1
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -108,6 +108,10 @@ private void monitorLongGc() {
// we already handled this one...
continue;
}
// Ignore any duration > 1hr; getLastGcInfo occasionally returns total crap
if (lastGc.duration().hoursFrac() > 1) {
continue;
}
if (lastGc.duration().millis() > gcThreshold.millis()) {
logger.info("[gc][{}][{}] took [{}]/[{}], reclaimed [{}], leaving [{}] used, max [{}]", gc.name(), gc.getCollectionCount(), lastGc.duration(), gc.getCollectionTime(), lastGc.reclaimed(), lastGc.afterUsed(), lastGc.max());
} else if (logger.isDebugEnabled()) {
Expand Down

0 comments on commit 89a46d1

Please sign in to comment.