Remember the default setting of the JVM The JVM runs as a client unless you specify -server (which will process you code about 50% faster by default your JVM is only 64MB.
The follow gives sets the initial heap to 975MB and the max size the same. java -server -ms975m -mx975m -oss6400k -ss2048k You need to do some research and figure out the parameters that best fit what you are doing. You need to use Runtime to monitor you memory. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 5:01 PM To: POI Users List Subject: Out of memory error... Hello all, I recently created a conversion utility that reads processes records from a result set into an HSSFWorksheet object. I just ran across a scenario where I am getting an out of memory error. I was testing it against a moderately sized file on an AS/400 system with the code running on my Dell 900Mhz 20G PC Win2K PC. I have 128Meg RAM and it was running in the Forte Community Edition IDE from Sun. I did have about 3-4 other windows open but I hardly think that would have caused a difference. I'm wondering if there's anything I can do to alleviate this. I'm thinking the out-of-memory is due to too many object being created with the result set containing about 4600 records each w/ about 25 or 30 fields. This combined with all of the HSSF sheet, row, and font objects for formatting and writing the data was probably too much. Is there any low memory alternative to what I'm trying? Regards, Cliff -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
