Hi,
Only one of CATALINA_OPTS or JAVA_OPTS is needed, not both.  See if it
works for you with 512MB.  It should be fine.

For the long term, especially if you're going to have many concurrent
users, you will want to investigate pairing Apache as the front end for
static content with tomcat as the back end for your servlets and JSPs.
It's a much more scalable and robust architecture.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Patrick Codere [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 21, 2002 10:37 AM
>To: 'Tomcat Users List'
>Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP
>
>Thanks Yoav,
>
>       I just changed the CATALINA.BAT file this way: I just added
these
>two lines on the top of the batch file.  Would that be ok?
>
>CATALINA_OPTS = -Xms512m -Xmx512m
>JAVA_OPTS = -Xms512m -Xmx512m
>
>-----Original Message-----
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
>Sent: August 21, 2002 10:04 AM
>To: Tomcat Users List
>Subject: RE: OUT OF MEMORY ERROR - PLEASE HELP
>
>
>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