We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdcdbe3 commit 9de0398Copy full SHA for 9de0398
visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/JmxModelImpl.java
@@ -309,7 +309,11 @@ public boolean isTakeThreadDumpSupported() {
309
}
310
311
public String getCommandLine() {
312
- return getJmxSupport().getCommandLine();
+ JmxSupport support = getJmxSupport();
313
+ if (support.isReadOnlyConnection()) {
314
+ return null;
315
+ }
316
+ return support.getCommandLine();
317
318
319
private JmxSupport getJmxSupport() {
0 commit comments