Insufficient system resources exist to complete the requested service
807580Mar 3 2008 — edited Dec 30 2009Hello,
I have aprogram which reads large Excel file, adds some data and creates a new Excel file of roughly about 100MB,
it executes till the end but in the last step in copying, I get this error below.
I am setting the JVM heap to 1024m
i.e
java -jar -Xmx1024m program.jar
Exception in thread "main" java.io.IOException: Insufficient system resources exist to complete the requested service
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:260)
at jxl.write.biff.MemoryDataOutput.writeData(MemoryDataOutput.java:107)
at jxl.write.biff.CompoundFile.writeExcelData(CompoundFile.java:505)
I cannot set the JVM heap to more than 1GB although my machine has 3GB of RAM.
please help,
thanx in advance