Hi Sebastian, A fix for this is planned for the 1.1 release (I saw there was no ticket created for this so I created one: https://trac.neo4j.org/ticket/140).
The workaround for now is to add "balance" nodes where you split the relationships up on more then one node. So if you have one node with lets say 10M relationships split it up on for example 10 nodes (that you can traverse to from a single node) with 1M relationships on each balance node. Regards, -Johan On Tue, Feb 24, 2009 at 6:11 PM, Sebastian Stober <sto...@cs.uni-magdeburg.de> wrote: > Hi, > > I would like to iterate over all nodes (about 7.5 million !!!) linked to > a factory node. When I call > > getRelationships(type, direction).iterator() > > on the factory node I get the following exception: > > Exception in thread "AdaptiveCacheWorker" java.lang.OutOfMemoryError: > Java heap space > at > java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:662) > at java.lang.StringBuilder.append(StringBuilder.java:230) > at > org.neo4j.impl.cache.AdaptiveCacheManager.adaptCache(AdaptiveCacheManager.java:289) > at > org.neo4j.impl.cache.AdaptiveCacheManager.adaptCaches(AdaptiveCacheManager.java:224) > at > org.neo4j.impl.cache.AdaptiveCacheManager$AdaptiveCacheWorker.run(AdaptiveCacheManager.java:199) > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at java.util.LinkedHashMap.createEntry(LinkedHashMap.java:424) > at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:406) > at java.util.HashMap.put(HashMap.java:385) > at org.neo4j.impl.cache.LruCache.add(LruCache.java:108) _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user