Re: [Neo4j] Bulk deletion of nodes and relationships in a server-side plugin fills up heap

2015-03-13 Thread Adrian Gruntkowski
It was a GC issue. After taking a closer look with a debugger I've observed that the purge operation was far from reaching BATCH_SIZE before hitting the modulo condition when it started aggressive GC under heap limit. I've refactored a code a bit (had to reduce BATCH_SIZE to 10 to actually make

Re: [Neo4j] Bulk deletion of nodes and relationships in a server-side plugin fills up heap

2015-03-12 Thread Michael Hunger
Do you actually run into GC issues, or is it just the Neo4j cache that's filled? Would it be possible to run this (with 512M or 1G heap) and create a heap-dump and look at the occupation? Thx Michael > Am 12.03.2015 um 17:41 schrieb Adrian Gruntkowski > : > > Hello, > > Hi. I'm having proble

[Neo4j] Bulk deletion of nodes and relationships in a server-side plugin fills up heap

2015-03-12 Thread Adrian Gruntkowski
Hello, Hi. I'm having problems deleting nodes and relationships from a server-side plugin. I have a following code that is supposed to accomplish this: 1. public class Purger { 2.private static final int BATCH_SIZE = 1000; 3. 4. ... 5. 6. public static void pu