Mantis - Resin
Viewing Issue Advanced Details
2428 minor always 02-12-08 05:33 03-26-08 16:51
closed 3.1.4  
none 3.1.6  
0002428: Generate thread dump when CPU usage is high.
Resin could output a thread dump automatically when the CPU usage of a server exceeds a threshold for a certain period of time.

Additional cleverness would be to check the garbage collector.

For example,

If CPU usage is high, sample 30 times over a period of 30 seconds, and
record CPU usage for each sample and whether or not the garbage collector
is active. If the CPU usage is high for all samples, output a message if the
garbage collector is the suspected problem, and in any case produce a thread

Resin should probably not automatically exit based on CPU information only, the <ping> facility covers that case.

There are no notes attached to this issue.