Extended Event Session Keeps Stopping

The name of the pictureThe name of the pictureThe name of the pictureClash 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?



Output File(s)



Selected Events










share|improve this question







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 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

















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?



Output File(s)



Selected Events










share|improve this question







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 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













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?



Output File(s)



Selected Events










share|improve this question







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?



Output File(s)



Selected Events







sql-server sql-server-2012 extended-events






share|improve this question







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.











share|improve this question







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.









share|improve this question




share|improve this question






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 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













  • 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








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











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);





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "182"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    William is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    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






























    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);





    share|improve this answer
























      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);





      share|improve this answer






















        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);





        share|improve this answer












        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);






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 34 mins ago









        Dan Guzman

        12.7k11633




        12.7k11633




















            William is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            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.













             


            draft saved


            draft discarded














            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













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery