Skip to content

Update Java Memory Assistant#789

Closed
mmanciop wants to merge 3 commits into
cloudfoundry:masterfrom
mmanciop:jma-0.4.0
Closed

Update Java Memory Assistant#789
mmanciop wants to merge 3 commits into
cloudfoundry:masterfrom
mmanciop:jma-0.4.0

Conversation

@mmanciop
Copy link
Copy Markdown
Contributor

Adjust the integration of the Java Memory Assistant so that version 0.4.0 works with Java 9+. On Java 9+, the JMA needs an exception to the Java Module system must be added
(specifically, --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED)
to allow access to com.sun.management.HotSpotDiagnosticMXBean, which is
needed to created heap dumps in live mode.

This PR enables to use the JMA with the following JVMs (and more, these are the one tested):

  • AdoptOpenJDK HotSpot 8.x
  • AdoptOpenJDK HotSpot 11.x
  • OpenJDK 11.x
  • Oracle JVM 11.x
  • Pivotal JDK 8.x
  • SAP Machine 11.x

mmanciop added 3 commits March 8, 2020 11:32
Update Java Memory Assistant to version 0.4.0, which adds support for
the following JVMs:

- AdoptOpenJDK HotSpot 8.x
- AdoptOpenJDK HotSpot 11.x
- OpenJDK 11.x
- Oracle JVM 11.x
- Pivotal JDK 8.x
- SAP Machine 11.x

On Java 9+, an exception to the Java Module system must be added
(--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED)
to allow access to com.sun.management.HotSpotDiagnosticMXBean, which is
needed to created heapdumps in live mode.
@nebhale nebhale self-requested a review March 23, 2020 15:09
@nebhale nebhale self-assigned this Mar 23, 2020
@nebhale nebhale added this to the 4.29 milestone Mar 23, 2020
nebhale pushed a commit that referenced this pull request Mar 23, 2020
Update Java Memory Assistant to version 0.4.0, which adds support for
the following JVMs:

- AdoptOpenJDK HotSpot 8.x
- AdoptOpenJDK HotSpot 11.x
- OpenJDK 11.x
- Oracle JVM 11.x
- Pivotal JDK 8.x
- SAP Machine 11.x

On Java 9+, an exception to the Java Module system must be added
(--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED)
to allow access to com.sun.management.HotSpotDiagnosticMXBean, which is
needed to created heapdumps in live mode.

[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
nebhale pushed a commit that referenced this pull request Mar 23, 2020
[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
nebhale pushed a commit that referenced this pull request Mar 23, 2020
[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
@nebhale nebhale closed this in 4ab9a56 Mar 23, 2020
@mmanciop mmanciop deleted the jma-0.4.0 branch March 23, 2020 16:53
ramonskie pushed a commit that referenced this pull request Dec 4, 2025
Update Java Memory Assistant to version 0.4.0, which adds support for
the following JVMs:

- AdoptOpenJDK HotSpot 8.x
- AdoptOpenJDK HotSpot 11.x
- OpenJDK 11.x
- Oracle JVM 11.x
- Pivotal JDK 8.x
- SAP Machine 11.x

On Java 9+, an exception to the Java Module system must be added
(--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED)
to allow access to com.sun.management.HotSpotDiagnosticMXBean, which is
needed to created heapdumps in live mode.

[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
ramonskie pushed a commit that referenced this pull request Dec 4, 2025
[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
ramonskie pushed a commit that referenced this pull request Dec 4, 2025
[#789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
ramonskie pushed a commit that referenced this pull request Dec 4, 2025
[resolves #789]

Signed-off-by: Ben Hale <bhale@pivotal.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants