Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created February 8, 2024 18:18
Show Gist options
  • Save gregjhogan/f311f84f585269937515733e3993b26d to your computer and use it in GitHub Desktop.
Save gregjhogan/f311f84f585269937515733e3993b26d to your computer and use it in GitHub Desktop.
run jstatd in logstash docker container
/usr/share/logstash/jdk/bin/jstatd -p 1099 -J-Djava.security.policy=<(echo 'grant codebase "jrt:/jdk.jstatd" { permission java.security.AllPermission; }; grant codebase "jrt:/jdk.internal.jvmstat" { permission java.security.AllPermission; };')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment