Are you adding all your data in one big transaction? Because all such additions will be kept in memory until the transaction is committed, see http://wiki.neo4j.org/content/Transactions#Big_transactions for more information. You will need to commit your transaction on a regular basis to avoid that. I'm afraid I don't know the Python bindings enough to write an example here though...
2010/9/23 Chris Diehl <[email protected]> > Hi All, > > I just wrote a script to push some email data from Python into neo4j using > neo4j.py. And within short order of executing the script, I got the > following error. > > 500 messages processed > 1000 messages processed > 1500 messages processed > Exception in thread "IndexServiceQueue" java.lang.OutOfMemoryError: Java > heap space > Traceback (most recent call last): > File "dataImport.py", line 99, in <module> > address_root_node.ADDRESS(e) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Neo4j.py-0.1_SNAPSHOT-py2.7.egg/neo4j/_primitives.py", > line 281, in __call__ > node, self.__single_type) > jpype._jexception.VirtualMachineErrorPyRaisable: > java.lang.OutOfMemoryError: Java heap space > > I’m not sure how to proceed from here to resolve this problem. I’d > appreciate any suggestions you have! > > I'm running this on a MacBook Pro with OS X v10.5.8. > > Thanks, Chris > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [[email protected]] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

