Ed.

Why don't you set a maximum heap size and see if it garbage collects
when it hits that size. Sounds like your application does not need that
much memory so try setting it to something like either:
  JAVA_OPTS=-Xms64m -Xmx128m 
Or 
  CATALINA_OPTS=-Xms64m -Xmx128m
This assumes you are starting Tomcat using the bin/catalina.bat script.

This will start it off with 64MB and let it grow to about 128MB
(probably a bit more in reality). It should garbage collect at that
point. If you are running Java 1.5 you can use the included Jconsole
tool to monitor memory usage. It will show you a saw tooth pattern if
the garbage collection is working properly.

HTH - Richard

-----Original Message-----
From: Ed Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 6:47 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32

Richard:

Looking at Tomcat with the task manager, it grows unchecked from a boot
value of about 45MB to however big I let it go; biggest I saw was 250MB
after about 6 days. At that point it's affecting system performance and
I have to reboot.  I'm pretty sure the GC would have run in there
somewhere.

So, yes, the heap is growing, if that is what the task manager sees as
Tomcat's memory usage climbing (I think so); it will do so until I run
out of memory - I haven't let it get that far, though.


Thanks,
Ed




-----Original Message-----
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 5:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat keeps growing in size on Win32


Are you actually running out of memory? Or is the heap just growing?

Garbage collection is a bit arbitrary and may not occur until there is a
need.

 HTH - Richard



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




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

Reply via email to