When a volume service is mounted and named/labeled/tagged with a reasonable identifier, jvmkill should write a heapdump to that location before it kills the JVM. This project consists of two parts
-
The jvmkill agent should have a new component added in order to optionally write out a heapdump to a specified location when it is configured to do so. In most cases there will not be volume service mounted, so in most cases, this won't be executed, but configuring it in the jvmkill parameters should enable it. Note that the name will need to both a directory to write in and a prefix/pattern that the name should be. Parts of the name will be specified by the configuration (e.g. directory and a filename containing app id, instance id, instance index, etc.) but part of the name will be generated (e.g. a timestamp).
-
The buildpack should detect the appropriate service and configure the jvmkill agent with the appropriate values when detected. It will be responsible for specifying the fixed part of the heap dump name, and enabling the support when appropriate.
When a volume service is mounted and named/labeled/tagged with a reasonable identifier,
jvmkillshould write a heapdump to that location before it kills the JVM. This project consists of two partsThe
jvmkillagent should have a new component added in order to optionally write out a heapdump to a specified location when it is configured to do so. In most cases there will not be volume service mounted, so in most cases, this won't be executed, but configuring it in thejvmkillparameters should enable it. Note that the name will need to both a directory to write in and a prefix/pattern that the name should be. Parts of the name will be specified by the configuration (e.g. directory and a filename containing app id, instance id, instance index, etc.) but part of the name will be generated (e.g. a timestamp).The buildpack should detect the appropriate service and configure the
jvmkillagent with the appropriate values when detected. It will be responsible for specifying the fixed part of the heap dump name, and enabling the support when appropriate.