java one-liner to flush all caches?

11 views
Skip to first unread message

Javad Karabi

unread,
Jan 17, 2014, 9:13:07 AM1/17/14
to ne...@googlegroups.com
is there a java one-liner to flush all the caches?

Stefan Armbruster

unread,
Jan 17, 2014, 9:34:12 AM1/17/14
to ne...@googlegroups.com
If you're using enterprise edition, you can flush the object caches
via JMX by calling clear() on the mbean,
http://docs.neo4j.org/chunked/stable/jmx-mxbeans.html#jmx-cache-nodecache.
The manual also has an example how to access JMX programatically:
http://docs.neo4j.org/chunked/stable/tutorials-java-embedded-jmx.html



2014/1/17 Javad Karabi <karab...@gmail.com>:
> is there a java one-liner to flush all the caches?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Javad Karabi

unread,
Jan 17, 2014, 9:52:45 AM1/17/14
to ne...@googlegroups.com

Is it possible on community edition?

You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/VM-ojwfacYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Stefan Armbruster

unread,
Jan 17, 2014, 10:27:36 AM1/17/14
to ne...@googlegroups.com
No. The JMX extension are a enterprise feature.

2014/1/17 Javad Karabi <karab...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages