On 10/12/2013 00:05, fuyou wrote:
I write a MappedFile ,and a task call sync write to disk.
but occur :
java.io.IOException: Cannot allocate memory
at java.nio.MappedByteBuffer.force0(Native Method)
at java.nio.MappedByteBuffer.force(MappedByteBuffer.java:154)
the os is Red Hat Enterprise Linux Server release 5.4
java is java version "1.6.0_23"
It means that the underlying msync has failed but it's not clear why. I
suspect you'll need to poke around on the system to see if this is
resource related.
-Alan.