HI,

I am working on a 265MB NT m/c.
If i dont do any specific configuration and if the memory consumed by tomcat
reaches about 64mb, then TOMCAT starts giving outofmemory exception.

I tried setting the heap size as suggested, using the following command in
tomcat.bat

set TOMCAT_OPTS= -Xmx128m

but it did not  work. When the memory consumed by TOMCAT reaches to 64mb, it
starts giving out of memory exceptions.

I have another doubt.
Why the objects are not getting garbage collected? I have checked using a
profiling tool, which shows that objects do not have any reference and
ready to get garbage collected.
Do i need to do anything specific for enabling the garbage collector in
tomcat environment?

regards,
Bhala

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 6:36 PM
Subject: Re: Setting max Heap size in Tomcat


>
>
>
> Tomcat is a Java application like any other so you can change the max heap
size
> the same as you would for anything else.
>
> For the Sun JDK 1.3 (and probably 1.2) all you have to do is run it like:
>
>     java -Xmx128M some.class.to.Run
>
> Just replace the "128M" with the maximum heap size.  Type "java -X" for
more
> information.
>
> Tomcat is typically started through a script - tomcat.bat or tomcat.sh.
To pass
> the "-Xmx" argument through, all you need to do is set the environment
variable
> TOMCAT_OPTS to "-Xmx128M" or whatever you need.  Alternatively you could
edit
> the scripts directly.
>
> Hope that's answered the question okay.
>
> Cheerio, Woody.
>
>
>
> > Hi,
> >
> > I am facing out of memory problem after continuous access of the tomcat.
> > I want to set the maximum heap size that can be used by TOMCAT.
> > what do i need to do  for changing the max heap size?
> >
> > regards,
> > Bhala
>
>
>
>
>
>
>
> _________________________________________________________________
>
> Internet communications are not secure. This message is confidential to
the
> addressee. Any copying or distribution of it by anyone without the
addressee's
> consent may be unlawful. If you are not the intended addressee, please
inform
> us immediately and then delete this message.
>
> Virginmoney Limited is regulated by the Personal Investment Authority for
> investment business only. Virginmoney Limited is registered with the
Mortgage
> Code Compliance Board and is a member of the General Insurance Standards
> Council.
>
> Virginmoney Limited's registered office: Discovery House, Whiting Road,
> Norwich, NR4 6EJ. Registered in England no. 3427512.
> _________________________________________________________________
>

Reply via email to