I\'m trying to write a very large file to another very large file. I\'m receiving this error on the filechannel writing line and I\'m unsure why. I thought it was because I was
Is there some limit that MappedByteBuffer has?
Of course there is. It is limited by the available virtual memory for a start, and after that by the virtual address space.
You should be using transferTo()
for this task rather than MappedByteBuffers,
, as there is no agreed means of disposing of the virtual address space occupied by the latter.