my dog learned polymorphism
The moose likes Tomcat and the fly likes Tomcat Out Of Memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Out Of Memory" Watch "Tomcat Out Of Memory" New topic

Tomcat Out Of Memory

Alain Boucher
Ranch Hand

Joined: Feb 25, 2003
Posts: 51
I'm creating a web application where you can uplaod a Zip file containing .jpg and .avi files. The jar file can have a size of 128megs. My problem is that the server start a thread that unzip the Zip file, copy the files, that resize them to a specific width and same them to a web directory. If I don't check the available memory and wait a couple of time before processing another image I get a OutOfMemory error. What can I do to increase the Tomcat memory, the server is on a Win98 machine and a cannot change the OS. Tomcat is version 4.0.1

Alain Boucher<br />Spare-Brain Consultants Inc.<br />SCJ2P,SCWCD,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
It looks to me like the JAVA_OPTS options in the Catalina.bat file used to start Tomcat would be where you would put command line memory settings. See the SDK /docs/tooldocs/tools.html for the meaning of the settings.
I agree. Here's the link:
subject: Tomcat Out Of Memory
jQuery in Action, 3rd edition