You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2002/12/02 21:49:29 UTC

RE: Memory/Performance

Howdy,

>I find that tomcat's memory stamp grows continually until eventually
there

How do you find this?  If it's through repeated access to your pages,
how do you know it's not your pages that are allocating objects and thus
consuming memory?

>1)Assuming tomcat has memory issues what can I do to control them?

That's not a good assumption in general.  Tomcat may have "memory
issues" indeed, but given that several people have spent significant
time and effort looking for and correcting leaks, the more likely
possibility is that your code has "memory issues."

You should run tomcat with your code inside a profiler, e.g. OptimizeIt,
and observe where memory is allocated and references are held.  This
will help you find out more information.  In turn, if you share your
observations and the relevant source code (JSP, servlets, whatever), we
can help you tune them for less memory consumption.  Or you can show
that it's a tomcat problem, submit an issue in bugzilla, and hopefully
it'll be resolved quickly.

>2)What techniques would you suggest to write jsppages that help keep
>memory consumption down?  Are there ways to write jsppages that makes
them
>more "garbage collection friendly"?

I can't help with this one, sorry ;(  Not a JSP expert...

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>