Skip to main content

Adam Bien: MONITORING GLASSFISH WITH JAVA8 AND NASHORN

GlassFish emits JSON monitoring data over HTTP. Java 8 comes with JavaScript "Nashorn" engine with shell scripting support. JSON stands for "JavaScript Object Notation" and is easily accessible from JavaScript: [see code]... ... Output is (hopefully): 0 rollbacks. The script above can be easily extended to monitor different aspects: from http, over JDBC connection pools, to even application specific performance metrics. See also...

Community: GlassFish