kandreev / jvm-attach

Wraper around attach API and other JVM diagnostic interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JVM Attach Protocol Wrapper

JVM Attach Protocol allow diagnostic tools send various commands to JVM identified by PID. Exact attach protocol is platform dependend, but standarized can comatible between JVM versions.

Usage of JVM Attach Protocol requires tools.jar in class path.

This project wraps API available via tools.jar with some helper code to

  • add tools.jar to classpath automatically
  • provide timeouts for command invocation
  • offer utility to parse JVM command output (e.g. heap histogram or stack trace)

In addition, API for HotSpot JVM perf counter is also included.

About

Wraper around attach API and other JVM diagnostic interfaces

License:Apache License 2.0


Languages

Language:Java 100.0%