This question hides both serverfault and stack overflow, so I chose it now.
I get the following exception due to some of the simplest file copy codes running on Windows Server 2003 x 64
: java.io.IOException: inadequate system resources The requested service is available to complete on sun.nio.ch.FileDispatcher.pwrite0 (the original method) Sun.nio.ch.FileDispatcher.pwrite (unknown source) at sun.nio.ch.IOUtil.writeFromNativeBuffer (unknown source) Sun.nio.ch.IOUtil.write (unknown source) at sun.nio.ch.FileChannelImpl. Write sun.nio.ch.FileChannelImpl.transferFrom (unknown source) at Sun.nio.ch.FileChannelImpl.transferFromFileChannel (unknown source) Tools.copy (Tools.java:473) Public static zero copy (FileChannel input , File channel production) throws IOException {last long size = input.size (); Long position = 0; While (position & lt; size) {last long count = (size - condition) & gt; FIFTY_MB? FIFTY_MB: (size - status); Pos + = output.transferFrom (Input, Status, Count); }}
This server that is running this code is new and very powerful, so I do not know what system resource it is running that is probably going on.
This looks like an error described here:
But I have tried to add registry edit to increase the kernel memory page size, and did not help with this.
I do not really get in. I have seen the code using a large amount of 50 MB using the file channel
transferFrom
I have seen That code is in a part of more than 1 GB work. But the file that is being stuck on is just 32 MB!
What's going on here? Is this a problem with filechannel
or Windows?
It may be related.
Evaluation: Not a bug This is the most file-server (or possibly client) configuration problem.
The action that the customer presented:
Do not use the NIO; We would love to avoid this solution because NIO promotes a significant performance for large files (at least when creating local disk-to-local disk copies)
We can move it using a small number of bytes. The actual number of bytes that can be copied without facing this error, Windows XP and Windows 2000 are different on the server, certainly the value of 32 MB works.
Comments
Post a Comment