On 18/07/11 07:17, Al Baker wrote:
Hi All,

I've noticed after creating a number of triples, eventually all TDB calls
fail around.  Some of of the objects stored are large strings (e.g. several
k).

java.lang.OutOfMemoryError: Java heap space
     at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
     at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
     at
com.hp.hpl.jena.tdb.base.objectfile.ObjectFileStorage.read(ObjectFileStorage.java:249)
     at com.hp.hpl.jena.tdb.lib.NodeLib.fetchDecode(NodeLib.java:60)

This fails on 0.8.10 or the 0.9 TxTDB.

Al


Hi Al,

How much RAM are you giving the process?  32-bit or 64-bit JVM?

Many very large stings might cause the node caching to use an excessive about of memory (this area has not changed between 0.8. and 0.9).

Aside spaces sides, it might be better to store large strings in a separate file space and point to them. (Maybe TDB should do that automatically.)

        Andy

Reply via email to