PerformanceCheck defines a set of expected performance boundaries for task execution. The PerformanceCheck is initialed with a list of PerformanceChecker objects associated with a PerformanceState metric (e.g. Metric_AQLQueries, Metric_PageGeneration, ...). The warning and the error thresholds used by the check are defined in the Parameters.table.
The expected pattern is that a PerformanceCheck instance is initialized (On startup) and remains immutable there after. It is then assigned to threads as requests are processed, via
PerformanceState.watchPerformance(Checker)
For an example of use, see AWDispatcherServlet and BaseUIApplication.defaultPerformanceCheck()
The applied PerformanceCheck is currently applied in two ways: 1) In production, the errorRuntimeMillis is monitored by the PerformanceState.WatcherDaemon to trigger error logging of run away thread. 2) At dev time, the AWDebugPane displays warning and error metrics as the developer navigates page to page in the app -- to flag problemmatic areas. @aribaapi ariba
|
|
|
|