cloudfoundry / jvmkill

Terminate the JVM when resources are exhausted
Apache License 2.0
30 stars 11 forks source link

heapdump support #8

Closed glyn closed 7 years ago

glyn commented 7 years ago

Beforejvmkill kills the JVM, it should request a heapdump if and only if a filesystem directory path for heapdumps has been specified in the agent options and the HotSpot diagnostic MXBean is available. Only live objects should be dumped.

See https://github.com/cloudfoundry/java-buildpack/issues/439 for the context of this feature.

glyn commented 7 years ago

Implemented in https://github.com/cloudfoundry/jvmkill/commit/75fa6e5566c0f21a49b46d4c587ba0dd824bd5b8