Either don't read so large a file into memory (ie read chunks and process them rather than the entire file) or increase the memory that Tomcat can use. You can increase the memory allowed to the VM using the -X arguements (java -X for help). The one you'll want is going to be -Xmx###M where the ### should be the amount of memory you want to allocate. Generally for production servers I typically allow tomcat at least 256 megs of ram using the option "-Xmx256M".
--mikej -=----- mike jackson [EMAIL PROTECTED] > -----Original Message----- > From: kjiang [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 06, 2005 1:19 PM > To: tomcat-user@jakarta.apache.org > Subject: java.lang.OutOfMemoryError Tomcat4.1.30 > > > Hi > When tomcat (version 4.1.30) read in a large file, > java.lang.OutOfMemoryError occurred, what can I do for this issue. > > Thanks > > Kelvin jiang > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]