You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,25 @@ On Windows, the plugin will refuse to install unless the binary has the `.exe` f
42
42
43
43
## Usage
44
44
45
+
### Prerequisites
46
+
This plugin internally uses `jmap` for OpenJDK-like Java virtual machines. When using the [Cloud Foundry Java Buildpack](https://github.com/cloudfoundry/java-buildpack), `jmap` is no longer shipped by default in order to meet the legal obligations of the Cloud Foundry Foundation.
47
+
To ensure that `jmap` is available in the container of your application, you have to explicitly request a full JDK in your application manifest via the `JBP_CONFIG_OPEN_JDK_JRE` environment variable. This could be done like this:
Please note that this requires the use of an online buildpack (configured in the `buildpack` property). When system buildpacks are used, staging will fail with cache issues, because the system buildpacks don’t have the JDK chached.
60
+
Please also note that this is not to be considered a recommendation to use a full JDK. It's just one option to get the tools required for the use of this plugin when you need it, e.g., for troubleshooting.
61
+
The `version` property is optional and can be used to request a specific Java version.
62
+
63
+
### Commands
45
64
<pre>
46
65
NAME:
47
66
java - Obtain a heap dump or thread dump from a running, Diego-enabled, SSH-enabled Java application
@@ -57,10 +76,13 @@ OPTIONS:
57
76
58
77
The heap dump or thread dump (depending on what you execute) will be outputted to `std-out`.
59
78
You may want to redirect the command's output to file, e.g., by executing:
0 commit comments