You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently,I am creating an index for a lot of articles. I prefer to use BTree<String,HashSet> to store articles.When the btree's enties is up to 200000,my program stopped with the java.lang.OutOfMemoryError: Map failed-------exception.
Here is the stacktrace:
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at org.apache.jdbm.StorageDiskMapped.write(StorageDiskMapped.java:113)
at org.apache.jdbm.PageFile.synch(PageFile.java:363)
at org.apache.jdbm.PageTransactionManager.synchronizePages(PageTransactionManager.java:178)
at org.apache.jdbm.PageTransactionManager.synchronizeLogFromMemory(PageTransactionManager.java:121)
at org.apache.jdbm.PageTransactionManager.start(PageTransactionManager.java:221)
at org.apache.jdbm.PageFile.commit(PageFile.java:240)
at org.apache.jdbm.PageManager.commit(PageManager.java:204)
at org.apache.jdbm.DBStore.commit(DBStore.java:446)
my computer 's memory size is 2GB ,os is win7. My DB's set is DBAbstract db1 = (DBAbstract)DBMaker.openFile("E:\新生训练\docs\db1").make();
To solve OOME mapflied ,how to set the DB?
The text was updated successfully, but these errors were encountered:
i am sorry for my pour english.Thanks to JDBM3,it really helps me a lot. but for now. the :
java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
This problem will drive me mad! I can't expand my computer's memory,nor the win 7 os.I think changing DBMaker set will help somehow. In addition,the entry's Data Structure which inserted into BTree is Entry<String,HashSet>. The total number of entries is about 520000.
Recently,I am creating an index for a lot of articles. I prefer to use BTree<String,HashSet> to store articles.When the btree's enties is up to 200000,my program stopped with the java.lang.OutOfMemoryError: Map failed-------exception.
Here is the stacktrace:
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at org.apache.jdbm.StorageDiskMapped.write(StorageDiskMapped.java:113)
at org.apache.jdbm.PageFile.synch(PageFile.java:363)
at org.apache.jdbm.PageTransactionManager.synchronizePages(PageTransactionManager.java:178)
at org.apache.jdbm.PageTransactionManager.synchronizeLogFromMemory(PageTransactionManager.java:121)
at org.apache.jdbm.PageTransactionManager.start(PageTransactionManager.java:221)
at org.apache.jdbm.PageFile.commit(PageFile.java:240)
at org.apache.jdbm.PageManager.commit(PageManager.java:204)
at org.apache.jdbm.DBStore.commit(DBStore.java:446)
my computer 's memory size is 2GB ,os is win7. My DB's set is DBAbstract db1 = (DBAbstract)DBMaker.openFile("E:\新生训练\docs\db1").make();
To solve OOME mapflied ,how to set the DB?
The text was updated successfully, but these errors were encountered: