-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support of visualvm monitoring on native image #1268
Comments
The option If you are using Gluon build of GraalVM (22.1.0.1-Final), that commit didn't make it to the build. If you check the changes in that commit:
the "old" way to enable VM inspection works with GluonFX and GraalVM 22.1.0.1-Final:
Note also that if you want to test on desktop, you can try a more recent GraalVM official build with the GluonFX plugin, and the new flag. |
Hi, Here are my attemps : It fails with the following error :
As my app is only a Desktop one, with a recent version of graalVM set in the PATH (version 22.0.1 of april), I tried various syntax for the options : 2/ With this maven conf : 3/ With :
Build is OK but native exe crashes at startup with a :
4/ With an extensive search, I found other options and after many tries :
Build is OK and native exe starts correctly. If you have any idea on how to make it work, I really would appreciate it. |
For information, I isolated and reproduced the problem with the latest version of graalvm and reported a bug here : oracle/graal#9563 |
I tried to use the monitoring of native image build for my javafx application with gluonfx maven plugin.
I am on windows and my build and native app following gluon docs works correctly :)
I followed : https://www.graalvm.org/latest/tools/visualvm/ to add --enable-monitoring=all to the native image build.
I did this configuration in the pom.xml :
The build failed with the logs :
[mer. ao├╗t 07 10:03:10 CEST 2024][INFOS] [SUB] Error: Unrecognized option: --enable-monitoring=all
[mer. août 07 10:03:10 CEST 2024][PRÉCIS] Result for compile: 1
[mer. ao├╗t 07 10:03:10 CEST 2024][GRAVE] Process compile failed with result: 1
Expected Behavior
I expect the option of monitoring is supported and I can then connect with visualvm to my native application in order to profile it.
Current Behavior
Build fail.
Context
I try to analyze ressource usage (cpu, memory) of the native image and optimize it because cpu usage is excessive by now.
The text was updated successfully, but these errors were encountered: