Limit MonitoringEngine stack size

Description

The MonitoringEngine keeps a stack of monitors per application thread. This turns into a memory leak if a top-level TransactionMonitor is repeatedly constructed on a pooled thread but never completed (with a call to the done() method). The damage should be contained from this kind of instrumentation bug by limiting the stack size. An error message would be logged when the configured maximum has been reached.

Environment

None

Assignee

Greg Opaczewski

Reporter

Greg Opaczewski

Labels

None

Affects versions

Priority

Minor
Configure