This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def c = new groovy.ui.Console(getClass().classLoader, new Binding(project:project)) | |
| c.run() | |
| def doneLatch = new java.util.concurrent.CountDownLatch(1) | |
| c.frame.windowClosed = {doneLatch.countDown()} | |
| doneLatch.await() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function jc_remote { | |
| jmx_host=$1 | |
| jmx_port=${2:-5000} | |
| proxy_port=${3:-8123} | |
| echo "Connecting jconsole to $jmx_host:$jmx_port via SOCKS proxy using local port $proxy_port" | |
| ssh -ND $proxy_port $jmx_host & | |
| jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=${proxy_port} \ | |
| service:jmx:rmi:///jndi/rmi://localhost:${jmx_port}/jmxrmi | |
| kill %1 |