Hi,

>profiler??  I think that this feature (mem per app) could help a lot to
>distinguish which app is consuming all the memory.

I think this would be a spectacular feature as well.  If you implement
it, I'll gladly review and commit into the tomcat repository.  That is,
if other tomcat committers don't beat me to it, because they'd all want
to see it.

The reason the feature is not there is that the java heap is not
hierarchical.  There are X string instances taking up Y bytes of memory:
there's no further categorization of them, e.g. by webapp (a foreign
concept to the JVM) or by thread.  You CAN get allocation backtraces for
each instance, and keep track of those somehow if you'd like, e.g. by
thread, but due to the tremendous runtime overhead involved, I'm not
aware of any profiler that does that.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to