[Neo4j] Flushing Cache

Alex Averbuch alex.averbuch at gmail.com
Mon Dec 27 15:58:25 CET 2010


Hi Tobias,
This is through 101 levels of abstraction (tinkerpop stack) so the
Open/Close method will do as a first step.

Thanks,
Alex

On Mon, Dec 27, 2010 at 2:56 PM, Tobias Ivarsson <
tobias.ivarsson at neotechnology.com> wrote:

> Shutdown and reopen will work.
>
> If you also want to flush the operating systems file system cache you will
> have to go dd some other (large) file.
>
> If all you want to do is clear the internal object cache you can do this
> through the Neo4j Cache management bean:
>
>   EmbeddedGraphDatabase graphDb = ...
>
> org.neo4j.management.Cache cache =
> graphDb.getManagementBean(org.neo4j.management.Cache.class);
>
> cache.clear();
>
> Cheers,
> Tobias
>
> On Mon, Dec 27, 2010 at 2:13 PM, Alex Averbuch <alex.averbuch at gmail.com
> >wrote:
>
> > Hey,
> > I want to flush the Neo4j cache (for benchmarking reasons).
> > If I shutdown the database and then reopen it will it do the trick, or is
> > there something else I need to do?
> >
> > Cheers,
> > Alex
> > _______________________________________________
> > Neo4j mailing list
> > User at lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
>
> --
> Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
> Hacker, Neo Technology
> www.neotechnology.com
> Cellphone: +46 706 534857
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>


More information about the User mailing list