Micrometer JVM heap pressure provides 2 very useful metrics that we are used to predict service outgage:
- jvm.memory.usage.after.gc
used for simple alert like >0.9 and trend alert that detects continius glow of non collectable heap (detects memory leaks)
- jvm.gc.overhead
used for simple alert (>0.3) that indicates likely incorrect heap memory settings
This PR enables these metrics by default.
Comment From: pivotal-cla
@vladimirfx Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@vladimirfx Thank you for signing the Contributor License Agreement!
Comment From: vladimirfx
Thanks for the PR. Can you please update the test suite as well?
Yes, sure. I've added a check in one unit test only. Please point me if it needed to update/add more tests.
Comment From: snicoll
@vladimirfx thank you for making your first contribution to Spring Boot. I've polished it in 39a1c85