An open API service indexing awesome lists of open source software.

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.

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

![Latest Version](https://api.bintray.com/packages/notjustanna/maven/processmonitor/images/download.svg)

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