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) at org.neo4j.impl.core.NodeManager.loadRelationships(NodeManager.java:621) at org.neo4j.impl.core.NodeImpl.ensureFullRelationships(NodeImpl.java:427) at org.neo4j.impl.core.NodeImpl.getRelationships(NodeImpl.java:247) at org.neo4j.impl.core.NodeProxy.getRelationships(NodeProxy.java:87) I have already set the amount of memory available for the jvm to 1GB (via -Xmx1024m) but the problem persists. There is no other data in memory except for what neo4j uses internally. The neo4j version used is 1.0 beta7. It looks like neo4j is trying to load all relations but why is this necessary for iterations? Any hints on how to solve this problem are more than welcome. Cheers, Sebastian -- Sebastian Stober E-mail: sto...@cs.uni-magdeburg.de University of Magdeburg WWW: http://www.dke-research.de/stober.html FIN ITI - DKE Group Phone: +49-391-67-12728 Universitaetsplatz 2 Fax: +49-391-67-12020 39106 Magdeburg, Germany _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user