History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-724
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

OutOfMemoryError in NativeStore with large values.hash files on 32-bit platforms

Created: 13/Dec/10 10:32 AM   Updated: 24/Aug/11 09:00 AM
Component/s: Native Sail
Affects Version/s: 2.3.2
Fix Version/s: None

Due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6822107 the HashFile used by Sesame's NativeStore can run into an OutOfMemoryError when it needs to grow. This happens when there's insufficient memory address space to store the hash file's overflow buckets. This problem has been seen on 32-bit platforms where a considerable part of the ~2GB of address space is used for the java heap. The relevant part of the stack trace looks like this:

java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:761)
at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:450)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:523)
at org.openrdf.sail.nativerdf.datastore.HashFile.increaseHashTable(HashFile.java:405)
at org.openrdf.sail.nativerdf.datastore.HashFile.storeID(HashFile.java:201)
at org.openrdf.sail.nativerdf.datastore.DataStore.storeData(DataStore.java:158)
at org.openrdf.sail.nativerdf.ValueStore.storeValue(ValueStore.java:319)
at org.openrdf.sail.nativerdf.NativeStoreConnection.addStatement(NativeStoreConnection.java:381)
... 24 common frames omitted
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:758)
... 31 common frames omitted

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.