System Health Extended Events
For our environment i recommend using the latest approach the system health default trace because it is enabled by default and we do not need to make additional changes in our environment such as starting.
System health extended events. Using the built in system health session. The session collects system data that you can use to help troubleshoot performance issues in the database engine. This session starts automatically when the sql server database engine starts and runs without any noticeable performance effects. Nothing you need to do about it at all.
Errors with a severity of 20. The extended events system health session. Memory related errors errors 17803 701 802 8645 8651 8657 and 8902. I ve talked about it before in relation to azure sql database and on the same topic we re going over today long running queries and waits cause if you have a long running query you have waits.
Similar to the default trace the system health session is automatically started up when the instance starts and collects information about what s going on. The system health session is an extended events session that is included by default with sql server. The system health session starts up by default and collects various performance points that can be used to help troubleshoot issues on the server. This will open the extended events ui.
The session collects system data that you can use to help troubleshoot performance issues in the database engine. This session captures information about the wait info and wait info external events. The system health session is an extended events session that is included by default with sql server. To look at the details of it just right click on the event session and choose properties.
System health extended event files are stored in the log folder of the instance. We can easily capture the location of the log folder from the sql server error log. In addition we can use the system health default trace which was introduced in sql server 2008 and it is built using extended events. In the following query we first use a temporary table to fetch and store the log file information and stored it into a path variable.
August 1 2018august 14 2018 matthew mcgiffen. When microsoft introduced extended events xe in 2008 they also gave us a built in xe session called system health though it s worth noting that in 2008 ms hadn t yet provided us a gui for this so it becomes most useful in 2012 and beyond. The definition of the system health session in sql server 2012 contains incorrect map key specified for the wait types of interest. Per bol you get the following information.
This session starts automatically when the sql server database engine starts and runs without any noticeable performance effects. On your servers any of them that are sql server 2008 or newer right now unless you ve performed actions to prevent this you re running the extended events system health session.