KB4541132 - Improvement: Size and retention policy are increased in default XEvent trace system_health in SQL Server 2016, 2017 and 2019


The current definition for the system_health XEvent session has a maximum file size of 5 megabytes (MB) and maximum number of files of 4, for a maximum of 20 MB of system_health XEvent data. On systems that have a lot of activity, you can roll over this limitation very quickly and miss important information in the event of an issue that affects the system. In order to keep more troubleshooting data available on the system, the default file size is changed from 5 MB to 100 MB and the default number of files is changed from 4 to 10, for a maximum of 1 GB of system_health XEvent data, in this update. If the definition of the system_health session has already been modified from the default values, this improvement will not overwrite the existing settings.

Additionally, you can change the system_health session configuration manually by using the following Transact-SQL script:

ALTER EVENT SESSION [system_health] ON SERVER DROP TARGET package0.event_file


ADD TARGET package0.event_file


SET filename=N'system_health.xel',





This improvement is included in the following cumulative updates for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Learn about the terminology that Microsoft uses to describe software updates.

Tarvitsetko lisäohjeita?

Kehitä taitojasi
Tutustu koulutusmateriaaliin
Saat uudet ominaisuudet ensimmäisten joukossa
Liity Microsoft Insider-käyttäjille

Oliko näistä tiedoista hyötyä?

Kiitos palautteestasi.