Skip to content

Commit

Permalink
Merge pull request #250 from graalvm/og/add-ni-jfx-demo
Browse files Browse the repository at this point in the history
Update a build command in Native Image JMX demo
  • Loading branch information
olyagpl committed Feb 8, 2024
2 parents fa897f5 + 27ff6a7 commit 623fe89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/native-image-jmx-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cd native-image-jmx-demo
wget -q https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar
javac SimpleJmx.java
native-image --enable-monitoring=jmxserver,jvmstat -H:DynamicProxyConfigurationFiles=proxy-config.json SimpleJmx
native-image --enable-monitoring=jmxserver,jmxclient,jvmstat -H:DynamicProxyConfigurationFiles=proxy-config.json SimpleJmx
./simplejmx -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9996 -Dcom.sun.management.jmxremote.ssl=false &
sleep 1
echo "get --bean com.jmx.test.basic:name=simple *" | java -jar jmxterm-1.0.2-uber.jar --noninteract --url localhost:9996
2 changes: 1 addition & 1 deletion native-image-jmx-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ In the next step, you will pass this JSON file to the `native-image` builder.
Build a native executable with VM monitoring enabled:

```shell
$JAVA_HOME/bin/native-image --enable-monitoring=jmxserver,jvmstat -H:DynamicProxyConfigurationFiles=proxy-config.json SimpleJmx
$JAVA_HOME/bin/native-image --enable-monitoring=jmxserver,jmxclient,jvmstat -H:DynamicProxyConfigurationFiles=proxy-config.json SimpleJmx
```

The `--enable-monitoring=jmxserver` option enables the JMX Server feature which allows accepting incoming connections.
Expand Down

0 comments on commit 623fe89

Please sign in to comment.