Extended Event Session Keeps Stopping
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
A few months ago I added an extended event to track blocked processes and deadlocks, with a file output to track occurrences.
Every now and again, I check the log file, but find that the extended event has stopped, when I "Start Session" again through SSMS, it picks up again and logs as expected.
How can I ensure that this runs 24/7?
Is it possibly failing somewhere and there's a log of errors that I'm unaware of?
sql-server sql-server-2012 extended-events
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
A few months ago I added an extended event to track blocked processes and deadlocks, with a file output to track occurrences.
Every now and again, I check the log file, but find that the extended event has stopped, when I "Start Session" again through SSMS, it picks up again and logs as expected.
How can I ensure that this runs 24/7?
Is it possibly failing somewhere and there's a log of errors that I'm unaware of?
sql-server sql-server-2012 extended-events
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Is your session defined withSTARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?
– Dan Guzman
1 hour ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
A few months ago I added an extended event to track blocked processes and deadlocks, with a file output to track occurrences.
Every now and again, I check the log file, but find that the extended event has stopped, when I "Start Session" again through SSMS, it picks up again and logs as expected.
How can I ensure that this runs 24/7?
Is it possibly failing somewhere and there's a log of errors that I'm unaware of?
sql-server sql-server-2012 extended-events
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
A few months ago I added an extended event to track blocked processes and deadlocks, with a file output to track occurrences.
Every now and again, I check the log file, but find that the extended event has stopped, when I "Start Session" again through SSMS, it picks up again and logs as expected.
How can I ensure that this runs 24/7?
Is it possibly failing somewhere and there's a log of errors that I'm unaware of?
sql-server sql-server-2012 extended-events
sql-server sql-server-2012 extended-events
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago


William
1085
1085
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
William is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Is your session defined withSTARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?
– Dan Guzman
1 hour ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago
add a comment |Â
1
Is your session defined withSTARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?
– Dan Guzman
1 hour ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago
1
1
Is your session defined with
STARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?– Dan Guzman
1 hour ago
Is your session defined with
STARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?– Dan Guzman
1 hour ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
It seems your Extended Event session is defined with STARTUP_STATE=OFF
so it is not started automatically when SQL Server is restarted.
Change the session to STARTUP_STATE=ON
to ensure it's always running (unless stopped manually):
ALTER EVENT SESSION [blocked_process] ON SERVER
WITH (STARTUP_STATE=ON);
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
It seems your Extended Event session is defined with STARTUP_STATE=OFF
so it is not started automatically when SQL Server is restarted.
Change the session to STARTUP_STATE=ON
to ensure it's always running (unless stopped manually):
ALTER EVENT SESSION [blocked_process] ON SERVER
WITH (STARTUP_STATE=ON);
add a comment |Â
up vote
2
down vote
accepted
It seems your Extended Event session is defined with STARTUP_STATE=OFF
so it is not started automatically when SQL Server is restarted.
Change the session to STARTUP_STATE=ON
to ensure it's always running (unless stopped manually):
ALTER EVENT SESSION [blocked_process] ON SERVER
WITH (STARTUP_STATE=ON);
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
It seems your Extended Event session is defined with STARTUP_STATE=OFF
so it is not started automatically when SQL Server is restarted.
Change the session to STARTUP_STATE=ON
to ensure it's always running (unless stopped manually):
ALTER EVENT SESSION [blocked_process] ON SERVER
WITH (STARTUP_STATE=ON);
It seems your Extended Event session is defined with STARTUP_STATE=OFF
so it is not started automatically when SQL Server is restarted.
Change the session to STARTUP_STATE=ON
to ensure it's always running (unless stopped manually):
ALTER EVENT SESSION [blocked_process] ON SERVER
WITH (STARTUP_STATE=ON);
answered 34 mins ago


Dan Guzman
12.7k11633
12.7k11633
add a comment |Â
add a comment |Â
William is a new contributor. Be nice, and check out our Code of Conduct.
William is a new contributor. Be nice, and check out our Code of Conduct.
William is a new contributor. Be nice, and check out our Code of Conduct.
William is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f219060%2fextended-event-session-keeps-stopping%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Is your session defined with
STARTUP_STATE=ON
so that it's automatically started when the SQL instance starts?– Dan Guzman
1 hour ago
Ah, that's the problem, it was off and we have had a couple of maintenance restarts lately. Could you put that in an answer and I'll accept? Thanks.
– William
44 mins ago