Skip to content

Instantly share code, notes, and snippets.

@harpocrates
Created August 7, 2019 20:42
Show Gist options
  • Save harpocrates/d72f64ca267416c2ecf64cbd5f4cfa5b to your computer and use it in GitHub Desktop.
Save harpocrates/d72f64ca267416c2ecf64cbd5f4cfa5b to your computer and use it in GitHub Desktop.
Wrapper script for calling `java` with JMX access on port 10000
#!/usr/bin/env bash
java \
-Dcom.sun.management.jmxremote.port=10000 \
-Dcom.sun.management.jmxremote.rmi.port=10000 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-Djava.rmi.server.hostname=localhost \
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment