Mark,

On 5/17/22 12:50, Mark Thomas wrote:
On 17/05/2022 17:34, Christopher Schultz wrote:
Mark,

On 5/17/22 08:17, Mark Thomas wrote:
On 17/05/2022 10:41, Thomas Meyer wrote:
Hi,

Is it possible to find out the per deployed context heap usage in tomcat?

With a profiler you can look at the retained size of the web application class loader instance associated with a web application.

I don't think this will tell you the volume of objects which belong to those classes, though.

If I read a big String into my application, it won't be counted towards the retained size of the web application classloader -- or will it? I don't understand how that String object could count towards the classloader's memory footprint.

It should do. The profiler traces obejct references and they should all lead back to the web application class loader.

What reference path would lead from a java.lang.String object to the web application ClassLoader? It's allocation-path? That would be tied to the Thread which allocated it, not to the TCCL the Thread happened to have at the time.

I've never tried to do this before and I suspect you have, so I'm not trying to say "you're wrong" -- because I know better ;) -- but I'd like to understand what exactly I'm missing, here.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to