NAV/SQL Troubleshooting - Blocks & Deadlocks v2

Administrator
Member, Moderator, Administrator Posts: 2,506
NAV/SQL Troubleshooting - Blocks & Deadlocks (Directions EMEA 2008)
This is the "Presentation Package" from the session presented at "Directions EMEA 2008", including the slides and various TSQL scripts to implement the introduced solutions.
>>>
Abstract:
This session is an excerpt from Jörg Stryk's training-course "Advanced NAV/SQL Performance Optimization" and will explain in detail the different locking mechanisms in C/SIDE Server and SQL Server; advanced methods for automatic block-/deadlock-detection and -analysis; and how to avoid and fix blocking-problems.
With this session practical advices, examples and templates are provided, to be instantly used in any NAV (or other Dynamics product) installation to improve the systems' performance.
<<<
Further information: http://dynamicsuser.net/blogs/stryk/arc ... erver.aspx
http://www.mibuso.com/dlinfo.asp?FileID=958
Discuss this download here.
This is the "Presentation Package" from the session presented at "Directions EMEA 2008", including the slides and various TSQL scripts to implement the introduced solutions.
>>>
Abstract:
This session is an excerpt from Jörg Stryk's training-course "Advanced NAV/SQL Performance Optimization" and will explain in detail the different locking mechanisms in C/SIDE Server and SQL Server; advanced methods for automatic block-/deadlock-detection and -analysis; and how to avoid and fix blocking-problems.
With this session practical advices, examples and templates are provided, to be instantly used in any NAV (or other Dynamics product) installation to improve the systems' performance.
<<<
Further information: http://dynamicsuser.net/blogs/stryk/arc ... erver.aspx
http://www.mibuso.com/dlinfo.asp?FileID=958
Discuss this download here.
0
Comments
-
Thank you very much! I'm testing the scripts on a local SQL server called TM0697\MHSQL2005 but it seems the alert does not want to accept @performance_condition=N'TM0697\MHSQL2005:General Statistics|Processes blocked||>|0', what am I doing wrong?0
-
Hi!
Can you create the Alert manually?
1. Right-Click in "Alerts" - "New"
2. Type in Name: "SSI: Block Detection"
3. Select Type "SQL Performance Counter"
4. Select Object "TM0697\MHSQL2005:General Statistics"
5. Select Indicator "Processes blocked"
6. Select Alert if Indicator "Raises above"
7. Type in Value "0"
8. Response: Tick/Select "Execute Job" - "SSI: Block Detection"
9. Options: Type in Delay of 10 Seconds
Does this work?
Regards,
JörgJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Yes, thanks. It's @performance_condition=N'MSSQL$MHSQL2005:General Statistics|Processes blocked||>|0',
So it seems instead of computername\serverinstancename it expects MSSQL$serverinstancename0 -
Hi!
I got some feedback on the TSQL scripts, so I could further improve them. The download here includes still the "old" versions, the new stuff is available from my BLOG:
http://dynamicsuser.net/blogs/stryk/archive/2008/04/18/blocks-amp-deadlocks-in-nav-with-sql-server.aspx
Regards,
JörgJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Hi! Is there any solution for NAV 3.60 and SQL 2000? Everything stops when one try to create the new alarm. The main problem is a counter "Processes blocked" which is not present in General Statistics of this version of SQL.0
-
With SQL 2000 you could monitor the "SQL Server:Locks" "Lock Wait Time" raises above 5000 (for example).
But that is not as reliable as the SQL 2005 "Processes blocked" and you may have to adjust the threshold ...Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
NAV/SQL Troubleshooting - Blocks & Deadlocks (Directions EMEA 2008) v2
This is the "Presentation Package" from the session presented at "Directions EMEA 2008", including the slides and various TSQL scripts to implement the introduced solutions.
>>>
Abstract:
This session is an excerpt from Jörg Stryk's training-course "Advanced NAV/SQL Performance Optimization" and will explain in detail the different locking mechanisms in C/SIDE Server and SQL Server; advanced methods for automatic block-/deadlock-detection and -analysis; and how to avoid and fix blocking-problems.
With this session practical advices, examples and templates are provided, to be instantly used in any NAV (or other Dynamics product) installation to improve the systems' performance.
<<<
Further information: http://dynamicsuser.net/blogs/stryk/arc ... erver.aspx
Version 2:
TSQL scripts have been improved as shown in my BLOG
http://www.mibuso.com/dlinfo.asp?FileID=958
Discuss this download here.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions