tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Memory/Performance
Date Mon, 02 Dec 2002 20:49:29 GMT
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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message