ext-narsi.re...@nokia.com wrote:
> HI Mark Thomas
>
>> Are you running Tomcat as a service?
>
> Intially I tried without service , that time I tried the below one
>
>>> --> Apache Tomcat 6.0 --> Configure Tomcat also here I tried in java
>>> options and min and max pool also
>
> Now im runn
g [mailto:rosenberg.l...@googlemail.com]
>Sent: Tuesday, December 30, 2008 4:22 PM
>To: Tomcat Users List
>Subject: Re: How to increase the tomcat heap memory
>
>add following to your catalina.sh
>
>export JAVA_OPTS="-mx256M -ms256M -XX:MaxPermSize=256m"
>
>or, on
riginal Message-
>From: ext Mark Thomas [mailto:ma...@apache.org]
>Sent: Tuesday, December 30, 2008 5:14 PM
>To: Tomcat Users List
>Subject: Re: How to increase the tomcat heap memory
>
>ext-narsi.re...@nokia.com wrote:
>>
>>
>> HI Mark Thomas
>>
ext-narsi.re...@nokia.com wrote:
>
>
> HI Mark Thomas
>
> Thanks for replying to my query ,
>
>> What did you try?
>
> I tried CATALINA_OPTS -Xms 1024m and -Xmx 1024m in environment
> variables and tried with JAVA_OPTS also , and I changed in the programs
> --> Apache Tomcat 6.0 --> Config
etenv.bat/setenv.sh in my tomcat
6.0.18 folders , so where can I find it ??
Thanks and Regards
Narsi Reddy CH
>-Original Message-
>From: ext Mark Thomas [mailto:ma...@apache.org]
>Sent: Tuesday, December 30, 2008 4:24 PM
>To: Tomcat Users List
>Subject: Re: How to
Leon Rosenberg wrote:
> add following to your catalina.sh
Better to use setenv.sh rather than edit catalina.sh
>
> export JAVA_OPTS="-mx256M -ms256M -XX:MaxPermSize=256m"
You should use CATALINA_OPTS rather than JAVA_OPTS in nearly all cases.
I haven't seen -mx and -ms referred to in the docs for
ext-narsi.re...@nokia.com wrote:
> Basically im running jmeter with 30 threads with 3
> requests with tomcat 6.0.18 , but tomcat is giving the Out of memory
> error ,
That sounds like you have a memory leak in your application.
> I want to increase Heap memory of tomcat , I trie
add following to your catalina.sh
export JAVA_OPTS="-mx256M -ms256M -XX:MaxPermSize=256m"
or, on windows, in catalina.bat
JAVA_OPTS="-mx256M -ms256M -XX:MaxPermSize=256m"
The values are only an example, the PermSize is optional if you have
many classes/jsps.
regards
Leon
On Tue, Dec 30, 2008