https://github.com/threecommaio/agent-safepoint
Java agent that can be used to export Safepoint statistics through a JMX MBean
https://github.com/threecommaio/agent-safepoint
Last synced: about 1 year ago
JSON representation
Java agent that can be used to export Safepoint statistics through a JMX MBean
- Host: GitHub
- URL: https://github.com/threecommaio/agent-safepoint
- Owner: threecommaio
- Created: 2018-04-26T00:41:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T00:52:09.000Z (about 8 years ago)
- Last Synced: 2025-06-11T02:04:05.300Z (about 1 year ago)
- Language: Java
- Homepage: https://www.threecomma.io/
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ThreeComma Safepoint Agent
https://www.threecomma.io/
This java agent can be used using `-javaagent:agent-safepoint.jar` to expose safepoint stats from `sun.management.ManagementFactoryHelper.getHotspotRuntimeMBean()`. These metrics are unfortunately not exported through JMX with Java 8.
This is really useful in production systems where you need to monitor STW (stop-the-world) pauses (`-XX:+PrintGCApplicationStoppedTime`).
* getSafepointSyncTime()
* getTotalSafepointTime()
* getSafepointCount()
The need arose when we realized Java 8 did not export Safepoint stats through JMX. So we wrote this to use with JMX exporter (https://github.com/prometheus/jmx_exporter).