> From: hanasaki [mailto:hanasaki@(protected)]
> Subject: controling resource and cpu hogging
>
> How can misbehaving deployed WAR's be identified and
> 1. killed off (maybe an issue if they hold onto threads
> or instance references when undeploy or stop is called)
You can try a profiler or thread dump to determine where each thread is
executing, but that's not a particularly easy or efficient way of
identifying the problem. You can also use the built-in manager app to
see if threads are active in any given application.
> 2. be controlled (ie: throttle/cap a specific domain
> and/or WAR deployment in CPU consumption).
I'm not aware of anything currently in Tomcat or the JVM that will let
you do this easily. However, JSR 284 (Resource Consumption Management
API - http://jcp.org/en/jsr/detail?id=284) has recently been approved,
which should address the issue. No idea when anyone will actually
implement it.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)