diff --git a/src/main/java/io/cryostat/diagnostic/Diagnostics.java b/src/main/java/io/cryostat/diagnostic/Diagnostics.java index 917d9412f..c5b922472 100644 --- a/src/main/java/io/cryostat/diagnostic/Diagnostics.java +++ b/src/main/java/io/cryostat/diagnostic/Diagnostics.java @@ -37,6 +37,7 @@ public class Diagnostics { public void gc(@RestPath long targetId) { targetConnectionManager.executeConnectedTask( Target.getTargetById(targetId), - conn -> conn.invokeMBeanOperation("java.lang:type=Memory", "gc", null, null, Void.class)); + conn -> + conn.invokeMBeanOperation( } }