Use this Knowledge Script to monitor JIT (just-in-time) compilation in managedĀ .NET applications.
This script raises an event if one of the following conditions exists:
The number of bytes per second that undergo JIT compilation (JIT byte rate) is less than a specified threshold. The JIT byte rate is the difference between the last two samples divided by the number of seconds in the interval.
The percent of time spent in JIT compilation since the application started exceeds a specified threshold.
NOTE:The monitored .NET applications must be running at the time of discovery so their resource objects can discovered. The applications must also be running for this script to collect data.
The default schedule for this script is Every 15 minutes.
Managed Applications folder
Managed Applications object
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
General Settings |
|
Raise event if application not running? |
Set to Yes to raise an event if the managed application is not running. The default is Yes. |
Event severity when application not running |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the managed application is not running. The default is 20 (yellow event indicator). |
Monitor JIT Byte Rate |
|
Event Notification |
|
Raise event if JIT byte rate falls below threshold? |
Set to Yes to raise an event if the JIT byte rate falls below the threshold you set. The default is Yes. |
Threshold - Minimum JIT byte rate |
Specify the minimum number of JIT bytes that must occur per second to prevent an event from being raised. The default is 512 bytes per second. |
Event severity when JIT byte rate falls below threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the JIT byte rate falls below the threshold. The default is 15 (yellow event indicator). |
Data Collection |
|
Collect data for JIT byte rate? |
Set to Yes to collect data for charts and reports. When enabled, data collection returns the JIT byte rate for the monitoring interval. The default is unselected. |
Monitor Percent of Time in JIT |
|
Event Notification |
|
Raise event if percent of time spent in JIT compilation exceeds threshold? |
Set to Yes to raise an event if the amount of time the application spends in JIT compilation exceeds the threshold you set. The default is Yes. |
Threshold - Maximum percent of time spent in JIT compilation |
Specify the maximum percentage of time the application can spend in JIT compilation before an event is raised. The default is 60%. |
Event severity when time spent in JIT compilation exceeds threshold |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the amount of time the application spends in JIT compilation exceeds the threshold. The default is 15 (yellow event indicator). |
Data Collection |
|
Collect data for percent of time in JIT compilation? |
Set to Yes to collect data for charts and reports. When enabled, data collection returns the amount of time the application spends in JIT compilation during the monitoring interval. The default is unselected. |