zhongl/iPage — Issue #37: Map failed
Author: zhongl
Created: 2012-03-06 02:49:09+00:00
State: open
Labels: Bug

```
java.lang.IllegalStateException: java.io.IOException: Map failed
at com.github.zhongl.ipage.IndexMerger$InnerPage.(IndexMerger.java:115)
at com.github.zhongl.ipage.IndexMerger.append(IndexMerger.java:90)
at com.github.zhongl.ipage.IndexMerger.mergeRestOf(IndexMerger.java:82)
at com.github.zhongl.ipage.IndexMerger.merge(IndexMerger.java:74)
at com.github.zhongl.ipage.Snapshot.append(Snapshot.java:94)
at com.github.zhongl.ipage.Storage.merge(Storage.java:145)
at com.github.zhongl.ipage.IPage$1$1.call(IPage.java:55)
at com.github.zhongl.ipage.IPage$1$1.call(IPage.java:52)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.github.zhongl.ipage.Actor$Core.run(Actor.java:88)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:761)
at com.google.common.io.Files.map(Files.java:733)
at com.google.common.io.Files.map(Files.java:719)
at com.github.zhongl.ipage.IndexMerger$InnerPage.(IndexMerger.java:113)
... 10 more
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:758)
... 13 more

```