Howdy,
You may wish to have Apache, not tomcat, serve static content such as
images.

But for your current setup, using only tomcat, you probably need to
increase the amount of memory available to the JVM.  You can do this via
the -Xmx parameter to java.  You set that parameter in your environment
(CATALINA_OPTS variable) or in the $CATALINA_HOME/bin/catalina.bat
script.  See the script itself for information about CATALINA_OPTS
and/or JAVA_OPTS.

Run java -X to see the X options, including -Xmx.  Fuller docs are at:
http://java.sun.com/docs/hotspot/VMOptions.html

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Patrick Codere [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 21, 2002 10:03 AM
>To: 'Tomcat Users List'
>Subject: OUT OF MEMORY ERROR - PLEASE HELP
>
>Hi everyone,
>
>       Here is my situation.
>-NT,
>-Tomcat 4.0.3
>- 2 webapps that have a link to each other
>- catalog with Thousand of jpegs (70kb each)
>
>After a while Tomcat crashed with java.lang.outofmemory problem.
>Before crash, get errors in my logs:
>
>java.net.SocketException: Software caused connection abort: socket
write
>error
>
>2002-08-19 21:58:43 action: Processing a GET for /home
>2002-08-19 21:58:43 action:  Looking for Action instance for class
>com.motovan.action.HomeAction
>2002-08-19 21:58:44 PageContextImpl: creating out
>java.lang.OutOfMemoryError
>
>2002-08-19 21:58:44 JspFactoryImpl: Exception initializing page context
>java.lang.IllegalStateException: failed initialize JspWriter
>       at
>org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.j
ava:
>1
>51)
>
>Please help.
>
>Pat
This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to