FileChannel.transferTo fails with large files
mthornton at optrak.co.uk
Thu Mar 5 02:50:10 PST 2009
Operating system: Vista 32 bit
JVM 1.6 u10
Heap size 1200MB
File size ~ 1GB
It appears to work by memory mapping the file in one piece which not
surprisingly fails in these circumstances (large file, large heap, 32
bit process). The resulting OutOfMemoryError is not what I would expect
from reading the method documentation.
Should this implementation be reconsidered?
More information about the nio-dev