#!/usr/bin/env groovy // getJvmDetails.groovy // // Main script for extracting JVM details via Attach API and JMX. // Accepts single parameter which is the process ID (pid) of the Java application // ...
Groovy‘s RootLoader is a handy class that can be used to encapsulate a Groovy script’s reference to external classpath dependencies within the script itself. The documentation for RootLoader states, ...