![]() The monitor uses its health score calculator to calculate a health score from 0 to 10 for the weighted average. The more recent the value, the higher it is weighted. NumberOfSamples property.Ī mathematical function is applied to the remaining values to produce a weighted average of the values. Only the most recent n values are preserved, where n is the value of the HttpThrottleSettings. Sample values that are too old to be relevant are removed from the set of raw performance values. (It can also take the result of a mathematical function of multiple performance values and translate it into a health score.)Įach monitor samples the latest value from the counter that it monitors and stores that value in the inspector’s set of raw performance values for the corresponding counter.Įach monitor updates the health score for the counter that it monitors. This object can translate a performance counter value into a health score from 0 to 10. Each of these creation data objects has a critical child SPHealthScoreCalculator object. There is one of these for every counter that has to be monitored. ![]() Information about which of the server’s counters have to be monitored is provided by a persisted set of SPPerformanceMonitorCreationData objects. This method creates an SPSystemPerformanceCounterMonitor object for each performance counter that has to be monitored. Sets the refresh interval of the inspector with the value from SPHttpThrottleSettings.RefreshInterval.Ĭalls the GenerateMonitors() method. Verifies that request throttling has not been turned off since the last loop. (This object may have changed since the last loop for example, the refresh interval may have been changed or an additional performance counter may have been added to the list of those being monitored.) Gets the SPHttpThrottleSettings object in the web application’s HttpThrottleSettings property. It loops through the following steps at an interval specified by the inspector’s refresh interval. The server status inspection thread is created when the inspector is created. Launching the Server Status Inspection Thread They are in order from the oldest sample to the most recent.Ī server status inspection thread that is used to sample the counter values periodically.Ī refresh interval setting that determines how frequently the counters are resampled. The scores are Int32 values from 0 to 10, with 0 being the healthiest possible score and 10 being the least healthy.Īn overall health score for the process, which is also an Int32 from 0 to 10.įor each counter that is being monitored, a set of raw performance values that have been read (sampled) from the counter. The inspector has the following major parts:Ī set of health scores, one for each performance counter that is being monitored. Creating a Performance InspectorĮach worker process of each web application on each front-end web server has its own performance inspector that is initialized with information from the web application’s HttpThrottleSettings property. The two major steps to the initialization are described in the following subsections. If the web application is reset, the system is reinitialized with the first request following the reset. Subsequent requests to the same process reuse the entities and threads that are initialized in that first request. The throttle control system is initialized during the BeginRequest event of the first HTTP request to a specific worker process on a specific front-end web server. Initialization of the Throttle Control System Introduction to Monitoring Performance Thresholds and the topics under this node. Windows Performance Counters and the topics under this node. For more information about these things and about creating your own performance counters, see the following topics: Before you attempt to program against the monitoring and throttling object model of SharePoint Foundation, you should be familiar the Windows Server 2008 system of performance counters and the concepts of category (also known as performance object), counter, and instance.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |