Groovy scripts to monitor the jvm