getting insight in Neo4j’s JMX beans when running embedded
Neo4j exposes a lot of valuable information via JMX. Sometimes you want to gain some insight in some JMX beans when running Neo4j in embedded mode. For this it’s crucial to have the neo4j-jmx-[version].jar file on the classpath.
The following short Groovy script demos this by using the @Grab annotation to fetch dependencies:
For a full reference of all available JMX beans, see the Neo4j manual.