How can GraalVM monitor the execution process of an executable file on Windows? #14073
Unanswered
chelong1993
asked this question in
Q&A
Replies: 1 comment
|
Hey @chelong1993, thank you for the report. Could you please try to reproduce the JFR demo with the latest GraalVM (25.1.3)? The reference manual you linked to is for the latest release, and support for JFR event recording on Windows was added in 25.1.3: https://www.graalvm.org/release-notes/25.1/ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, development team, all is going well.I encountered some problems when using GraalVM.
I used the official example from GraalVM to generate the two files, jfrdemo.exe and simplejmx.exe, on the Windows 10 operating system。The version of my Windows 10 operating system is as follows:


The method for generating the jfrdemo.exe file is as follows:
https://www.graalvm.org/latest/reference-manual/native-image/guides/build-and-run-native-executable-with-jfr/
The jfrdemo.exe file I generated is as follows:
The method for generating the simplejmx.exe, file is as follows:



https://www.graalvm.org/latest/reference-manual/native-image/guides/build-and-run-native-executable-with-remote-jmx/
The simplejmx.exe file I generated is as follows:
However, when I ran jfrdemo.exe with the command "jfrdemo.exe -XX:StartFlightRecording=filename=recording.jfr", an error occurred as follows:

This results in the inability to use JFR to monitor the exe process.
Meanwhile, although the simplejmx.exe process can be started by using the command
"simplejmx.exe -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9996 -Dcom.sun.management.jmxremote.ssl=false",it is impossible to view the simplejmx.exe process in VisualVM 2.2.1 of the Windows operating system, as shown below:
This prevented me from using JMX to monitor the exe process.
My GraalVM version is as follows:

It turns out that there are problems with the official case. How should this issue be resolved?Many thanks
All reactions