https://github.com/notjustanna/processmonitor
Java Process Monitoring, which leverages JMX beans to monitor it.
https://github.com/notjustanna/processmonitor
Last synced: about 1 month ago
JSON representation
Java Process Monitoring, which leverages JMX beans to monitor it.
- Host: GitHub
- URL: https://github.com/notjustanna/processmonitor
- Owner: NotJustAnna
- License: mit
- Created: 2019-08-18T00:51:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T00:47:09.000Z (almost 3 years ago)
- Last Synced: 2025-01-02T03:46:16.639Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Process Monitor
Java Process Monitoring, which leverages JMX beans to monitor it.
Licensed under the [MIT License](https://github.com/notjustanna/processmonitor/blob/master/LICENSE).
### Installation

Using in Gradle:
```gradle
repositories {
jcenter()
}
dependencies {
compile 'net.notjustanna.libs:processmonitor:LATEST' // replace LATEST with the version above
}
```
Using in Maven:
```xml
central
bintray
http://jcenter.bintray.com
net.notjustanna.libs
processmonitor
LATEST
```
### Usage
```java
ProcessMonitor monitor = new ProcessMonitor();
// taking snapshots manually
monitor.takeSnapshot();
// receiving a async stream of snapshots
monitor.snapshotStream(
Executors.newSingleThreadScheduledExecutor(),
1L, TimeUnit.SECONDS,
snapshot -> System.out.println(snapshot)
);
```
### Support