Results 1 to 6 of 6

Thread: Locks and Alerts

  1. #1
    Join Date
    Nov 2002
    Location
    cornwall
    Posts
    187

    Locks and Alerts

    Hi,

    I am having trouble with locks and performance issues in one application. The SQL server is specific to this application. What settings should i choose to set an alert to let me know when i get too many locks? the locks i am interested in ar ethe ones that show up in SQL EM. ie where a process is blocking another process(es).

    I have tried New Alert | lock requests /sec but that is a huge figure when the server is running OK, so i cant guess what value to set for the counter. Is there a better object/counter i should use?

    thanks
    fatherjack

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Don't think there is any blocking event you can set in alert. But can query blocked column in master..sysprocesses, there is blocking if that column is not 0. You can run the query as scheduled job and send you message if there is blocking.

  3. #3
    Join Date
    Nov 2002
    Location
    cornwall
    Posts
    187
    thats a bit awkward, would even say inconsiderate!!!!!

    wouldn't it be a big performance hit if i set a scheduled job with too brief a frequency??

    is it me or does a column called Blocked not tie in with the fact that it is "Blocking"? :-/

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Another thing can try is set alert on lock wait time.

  5. #5
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  6. #6
    Join Date
    Nov 2002
    Location
    cornwall
    Posts
    187
    Mak,

    this looks good. What is the overhead on the server with the job running every minute?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •