-
Notifications
You must be signed in to change notification settings - Fork 353
GraalVM for Apple Silicon: management.metrics.distribution
error
#1538
Comments
We had the array variant, so I added the regular class one, please check with snapshots it works for you. |
I tried 0.11.4-SNAPSHOT in this PR. The error still happens:
Steps to reproduce:
|
I can't reproduce since I am on Linux. Could you please give me the output of |
I tried with release 22.2.0.dev.r17 from a few days ago.
It appears that The error still happens. The output from
|
I managed to build a minimal reproducer, with which I'll analyze what's happening here. demo.zip fails when compiling and then running with https://github.com/graalvm/graalvm-ce-dev-builds/releases/tag/22.2.0-dev-20220330_2302 |
Great, likely worth to refine my initial try for a fix (bf12d54) with a better trigger. |
This is not MacOS specific. I can reproduce the problem on Linux aarch64 with a GraalVM built from 22.1 source, too. It works with
so this looks like a 22.1 regression. |
This triggers only if MetricsAutoConfiguration is active. Closes spring-atticgh-1538
@mraible I have a PR which fixes the problem. I can build your
which i guess is no native-image problem. Can you give the PR a try? |
@mhalbritter This happens because Keycloak is not started. You can start it with:
I'll test your PR and report back. |
I should mention that Keycloak has its own issues because you have to build it on an M1 in order for it to work. I used these instructions with 16.0.1 to get things working. @mhalbritter I tested your PR and it does solve the problem. Nice work! |
Nice, thanks for the update! |
This triggers only if MetricsAutoConfiguration is active. Closes gh-1538
I was motivated to try out GraalVM for Apple Silicon after it was announced today.
How I installed it:
Downloaded and extracted graalvm-ce-java11-darwin-aarch64-dev.tar.gz
Installed it as an SDKMAN candidate:
Set SDKMAN to use it:
sdk default java 22.1.0.dev.r17-grl
I used my recent example with JHipster on my M1 and ran:
I was pleased to see it finished in 2m (vs 3m 10s on Intel). Unfortunately, it doesn't work if I try to start it:
If I add
org.springframework.boot.actuate.autoconfigure.metrics.ServiceLevelObjectiveBoundary.class
to my type hints, it works.The text was updated successfully, but these errors were encountered: