adoptium / jmc-build

Contains the Adoptium specific source code overrides and build pipeline script for the Java Mission Control project.
Apache License 2.0
22 stars 9 forks source link

JMC not available for linux aarch64 #46

Closed jborgers closed 10 months ago

jborgers commented 1 year ago

I'd like to run JMC on my linux on Apple M1.

jborgers commented 1 year ago

For those wondering what the above means, like me :-). Translation says:

This is a vacation auto-reply email from QQ mailbox. Hi, I am currently on vacation and cannot reply to your email personally. I will get back to you as soon as possible after the holiday.

jiekang commented 1 year ago

This would be an issue for the JMC project itself (https://github.com/openjdk/jmc), though they use the OpenJDK Jira (https://bugs.openjdk.org/projects/JMC/) so you might not be able to open an issue there. Maybe try an email to jmc-dev mailing list? https://mail.openjdk.org/mailman/listinfo/jmc-dev

thegreystone commented 1 year ago

The JMC project is built for aarch64. Here is to run it after you've built it: target/products/org.openjdk.jmc/macosx/cocoa/aarch64/JDK\ Mission\ Control.app/Contents/MacOS/jmc

You will also find it in the Adoptium builds of JMC: https://github.com/adoptium/jmc-build/releases

Have fun on your M1! :)

jborgers commented 1 year ago

Hi @thegreystone thanks for your reply. However, I can only find an aarch64 build for MacOS, not for Linux. Is it available for Linux?

Thanks

thegreystone commented 12 months ago

Ah! I missed that you wanted it for Linux. Sorry.

I added: https://bugs.openjdk.org/browse/JMC-8120

thegreystone commented 12 months ago

So, I did a PR, that I believe should work. That said, I don't have Linux on an M1, so I can't verify. Could you help give it a shot?

It's over here: https://github.com/openjdk/jmc/pull/514

jborgers commented 11 months ago

Hi @thegreystone, thanks for doing the work. I fetched the code from your clone and finally managed to build/package it locally. However, I see 4 products in target and the linux aarch64 is missing. Do I need to configure somewhere that I also want to create that product?

jborgers commented 11 months ago

I was using master branch. Will try again with branch 8120-linux-aarch64.

jborgers commented 11 months ago

It seems to work! JMC starts up, JMX browser works, I will test the flight recording later.

jborgers commented 11 months ago

Flight recorder with reports also works! :-) Nice to see more colors in flame graphs. Only, just 'Samples' metric seems to work for flame graph.

thegreystone commented 11 months ago

It seems to work! JMC starts up, JMX browser works, I will test the flight recording later.

Excellent! :)

reinhapa commented 11 months ago

@thegreystone we may leave this issue open, as the new binary needs to be incorporated into the build scripts...

reinhapa commented 10 months ago

Binaries now available on https://adoptium.net/jmc/

thegreystone commented 10 months ago

Nice!