80MB is definitely possible (our application generally runs at about
130MB with peaks into the 300MB range for users, some nightly processing can
push that to more than 500MB), it really depends on your application.

        Places where you could be loosing memory:
        1.  JavaC.  Apparently JavaC has a memory leak and that memory can
only be reclaimed by stopping and restarting Tomcat.  To avoid this memory
leak you have two options:  A - use JSPC and precompile all your JSPs into
servlets and B - When you do a new release launch Tomcat, have someone hit
every page in the application, and restart Tomcat.
        2.  You might want to look at your session timeout along with how
much data you are putting into the session, this could cause you to hold
memory longer than is really necessary
        3.  Static variables on classes that somehow grow (like lists or
maps that you keep putting data in and never remove).

        You can try running something like OptimizeIt! to determine where
you are using the memory, but you might want to try and narrow down where
the leak is occurring (some small set of actions or screens).

        Randy

> -----Original Message-----
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 8:08 PM
> To: Tomcat Users List
> Subject: RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> I am using Linux RedHat 7.1, Sun JDK 1.3.1_01.  Actually, it 
> looks like it
> has gone down a bit.  The memory was slowly growing all day 
> today, up to
> about 80MB for java.  It has gone back down a bit, so 
> hopefully that means
> that something (gc) is working.
> 
> Do those numbers sound right for an application that is 
> mostly jsp's, and
> usually has around 15-20 concurrent database connections?  
> Sessions are
> stored for each user as well.
> 
> Maybe that's what I should be expecting???
> 
> 
> -----Original Message-----
> From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 6:58 PM
> To: Tomcat Users List
> Subject: Re: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> Can you give a bit more information, Brandon?  Which Linux? 
> What JVM?  Etc.?
> 
> At 02:32 PM 3/6/02 -0600, you wrote:
> >This is probably a problem with our application, but does 
> anyone know of
> any
> >possible misconfiguration or anything that will cause a very 
> slow increase
> >in the amount of memory that Tomcat is using on Linux?  If 
> nobody has had a
> >similar experience, what about possible solutions to 
> tracking down the
> cause
> >of this slow memory usage increase?  We have hundreds of 
> classes to search.
> >Is there a tool or anything to help us out?
> >
> >Any help is GREATLY appreciated!!!
> >
> >Brandon
> >
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to