import org.stagemonitor.core.Stagemonitor;
public class MyApp {
public static void main(String[] args) {
Stagemonitor.startMonitoring();
// ...
Stagemonitor.stopMonitoring();
}
}
import org.stagemonitor.core.Stagemonitor;
import org.stagemonitor.core.instrument.ConcurrencyDetector;
public class MyApp {
public static void main(String[] args) {
Stagemonitor.startMonitoring();
ConcurrencyDetector.start();
// ...
ConcurrencyDetector.stop();
Stagemonitor.stopMonitoring();
}
}
stagemonitor.dispatcher = org.stagemonitor.alerting.Dispatcher
stagemonitor.reporting.interval.console = 5000
stagemonitor.concurrencyDetection.enabled = true
stagemonitor.concurrencyDetection.threadPoolSize = 100