Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Insufficient system resources exist to complete the requested service

807580Mar 3 2008 — edited Dec 30 2009
Hello,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2010
Added on Mar 3 2008
4 comments
874 views