Skip to content

GEODE-6253: Handle JDK-8207200 gracefully in VM stats#3057

Merged
kirklund merged 1 commit intoapache:developfrom
kirklund:GEODE-6253-VMStats50
Jan 8, 2019
Merged

GEODE-6253: Handle JDK-8207200 gracefully in VM stats#3057
kirklund merged 1 commit intoapache:developfrom
kirklund:GEODE-6253-VMStats50

Conversation

@kirklund
Copy link
Contributor

@kirklund kirklund commented Jan 8, 2019

First commit prevents logging of a fatal level stack trace when JDK-8207200 is hit and allows remaining stats to be sampled.

try {
return memBean.getHeapMemoryUsage();
} catch (IllegalArgumentException e) {
logger.info("JDK-8207200 prevented sampling stats for HeapMemoryUsage");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that this will log every second (each time a sample is done). Could you add a count somewhere and only log the message once?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had changed it to debug but it was in the 2nd commit. I've dropped the 2nd commit and fixed up the 1st commit so you can see it's debug now.

@kirklund kirklund force-pushed the GEODE-6253-VMStats50 branch from 86257b9 to 3131e93 Compare January 8, 2019 17:49
@kirklund kirklund requested a review from agingade January 8, 2019 17:51
@kirklund kirklund merged commit 1143af9 into apache:develop Jan 8, 2019
@kirklund kirklund deleted the GEODE-6253-VMStats50 branch October 18, 2019 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants