Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(jmc-core): Upgrade Java Mission Control to version 8.1.0 #99

Closed
wants to merge 2 commits into from

Conversation

oscerd
Copy link
Contributor

@oscerd oscerd commented Sep 17, 2021

Fixes #95

Pointing JMC 8.1.0

@oscerd
Copy link
Contributor Author

oscerd commented Sep 17, 2021

cc @andrewazores

@oscerd oscerd changed the title Upgrade Java Mission Control to version 8.1.0 Refactor: Upgrade Java Mission Control to version 8.1.0 Sep 17, 2021
@oscerd oscerd changed the title Refactor: Upgrade Java Mission Control to version 8.1.0 refactor: Upgrade Java Mission Control to version 8.1.0 Sep 17, 2021
@andrewazores andrewazores self-assigned this Sep 17, 2021
@andrewazores andrewazores added the chore Refactor, rename, cleanup, etc. label Sep 17, 2021
@andrewazores andrewazores changed the title refactor: Upgrade Java Mission Control to version 8.1.0 chore(jmc-core): Upgrade Java Mission Control to version 8.1.0 Sep 17, 2021
@andrewazores
Copy link
Member

This will take some more attention to review. I will need to test the main Cryostat project with this upgraded version and ensure everything still works as expected after the major JMC version bump.

@aptmac
Copy link
Member

aptmac commented Sep 17, 2021

Just a heads up on this, JfrHtmlRulesReport (used to generate the automated analysis in ReportGenerator) is broken as of JMC 8; I would give this a test to make sure the automated analysis pages can be generated.

The upstream issue can be tracked at: https://bugs.openjdk.java.net/browse/JMC-7231 [0]

There is currently a fix under review [1], but currently requires a bit more work. A fix will hopefully be incorporated in 8.2.0.

[0] https://bugs.openjdk.java.net/browse/JMC-7231
[1] openjdk/jmc#302

@oscerd
Copy link
Contributor Author

oscerd commented Sep 28, 2021

Do you need any help on this?

@andrewazores
Copy link
Member

I haven't had a chance to test this, although now that I'm here thinking about this again I think upgrading the JMC version will take a little more work. For downstream build purposes we have some portions of JMC forked and embedded directly into our -core here ( https://github.com/cryostatio/cryostat-core/tree/main/src/main/java/org/openjdk/jmc ). So, not only does the pom need to be updated for the new JMC version, but these embedded sources need to be either removed or updated as well. @ebaron - what's your take?

@ebaron
Copy link
Member

ebaron commented Sep 30, 2021

There's some work happening upstream in JMC to move remote JMX utilities to JMC Core: https://bugs.openjdk.java.net/browse/JMC-7069. The embedded sources in this project are a temporary measure to avoid pulling in Eclipse dependencies until this refactoring is done and we no longer need to depend on the JMC Application code.

Updating the embedded JMC application sources in this project is a time consuming and error prone process, but it may be worth doing. I expect that we would want to keep both the JMC core dependency and embedded JMC application sources at the same version.

@jiekang
Copy link
Contributor

jiekang commented Oct 29, 2021

@oscerd Hi! As @aptmac mentioned there is a critical bug in 8.1.0 core that affects our use of the automated analysis API. I think upstream JMC is releasing 8.1.1 very soon to address that. I'll keep an eye on that; when the release is made, I think we should update to 8.1.1 instead.

@oscerd
Copy link
Contributor Author

oscerd commented Nov 1, 2021

@jiekang sure, I'll update once it will be available.

@oscerd
Copy link
Contributor Author

oscerd commented May 13, 2022

8.2.0 is out. Is it a target for Cryostat-core?

@andrewazores
Copy link
Member

@oscerd yes, we just had our planning meeting for the next Cryostat release and updating cryostat-core for JMC 8.1.1 or 8.2.0 is a higher priority item on the list. It does not seem that the JMC refactoring to extract all of the parts we use into jmc-core is done yet, so there is still a need to manually update the embedded fork within cryostat-core as well.

@andrewazores
Copy link
Member

Superseded by #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactor, rename, cleanup, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Update to JMC 8
5 participants