- Windows running Tomcat 5.5 and later : Go to the "Apache Tomcat x.x"
   folder in the Start Menu. Start the "Configure Tomcat".
   Select the "Java" tab in the configuration dialog.
      - *Server mode:* this is determined by the jvm.dll specified in the
      "Java Virtual Machine" text box. (One should not specify the "-server" or
      "-client" JVM option.)
      The server .dll is usually placed under a "server" directory in the
      JRE directory.
      For example: "C:\Program
      Files\Java\jdk1.5.0_07\jre\bin\server\jvm.dll".
      The complete SDK should be downloaded for this from Sun, as the JRE
      installers only contain the "client" directory.
      - *Maximum heap size:*The "Maximum memory pool" text box coresponds to
      the heap size limit.
      (If using this text box it is not needed to specify "-Xmx" Java
      option.)
      - Advanced JRE options can be specified in the "Java Options" text
      area. Append your other Java options at the bottom of the option list.
   - Windows running Tomcat 4.1 or earlier : place the Java options into the
   CATALINA_OPTS environment variable. To do this, run Control Panel / System,
   select Environment Variables and create the CATALINA_OPTS variable, and set
   the desired option, for example "-server -Xmx400m".
   - Linux : place the Java options into the CATALINA_OPTS environment
   variable. For example: "-server -Xmx400m".


I have done the windows part when i used tomcat. u can see how to set it up
in linux.


Below link might helpful to you

http://www.chemaxon.com/jchem/doc/admin/tomcat.html

On Tue, Sep 29, 2009 at 1:35 AM, Pratik K Anand <[email protected]>wrote:

> Hi, I'm getting the following error :
>
> java.lang.OutOfMemoryError: Java heap space
>
> when I run a war on Tomcat...
>
>
> Can anyone tell me how to increase the heap size?
>
>
> I use Linux 2.6.28-15-generic
>
>
>
> Ubuntu 9.04
>
>
>
> --
> thanks for your time,
> Pratik K Anand
>



-- 
Rajanikanth.R
PH: 3108494454

Reply via email to