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

Applies to: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core

Improvement


The current definition for the system_health XEventsession has a maximum file size of 5 megabytes (MB) and maximum number of files of 4, for amaximum 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 importantinformation in the event of an issue that affects the system. In order to keep moretroubleshooting 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 from4 to 10, for a maximum of 1 GB of system_health XEvent data, in this update. If the definitionof 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_healthsession configuration manually by using the following Transact-SQL script:

ALTER EVENT SESSION [system_health] ON SERVER DROPTARGET package0.event_file
     ALTER EVENT SESSION[system_health] ON SERVER
     ADD TARGETpackage0.event_file
     (
          SET filename=N'system_health.xel',
          max_file_size=(100),
          max_rollover_files=(10)
     )

Resolution


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:

References


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