Download The NAV/SQL Performance Field Guide

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
Performance Checklists
Part A - SQL Server Configuration
Company Name:
Name:
Date:
Place:
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
Database Server General
Description
UNC Name
IP Address
Place
Installation Date
Administrator (E-Mail)
Operating System
Comment
Architecture
Number of CPU
CPU Specification
RAM
Network LAN
Network Cluster
Network Server-Server
PAE
3GB
Comment
Hyper-Threading
Power Management
Comment
Hardware Specifications
O x86 O x64 O i64
O Yes O No
O Yes O No
(required with 32bit and > 4GB RAM)
(required with 32bit and < 16GB RAM)
BIOS Setting
O Yes O No
O Yes O No
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 1 of 8
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
Disk Subsystem
Description
Disk 1
Drive Letter
Controller Type
RAID Configuration
Capacity
RPM
Comment/Usage
Disk 2
Drive Letter
Controller Type
RAID Configuration
Capacity
RPM
Comment/Usage
Disk 3
Drive Letter
Controller Type
RAID Configuration
Capacity
RPM
Comment/Usage
Disk 4
Drive Letter
Controller Type
RAID Configuration
Capacity
RPM
Comment/Usage
Disk 5
Drive Letter
Controller Type
RAID Configuration
Capacity
RPM
Comment/Usage
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 2 of 8
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
SQL Server Settings
SQL Instance Name
SQL Server Build No.
Cluster
Collation
Affinity Mask
CPU used
Degree of Parallelism
Threshold Parallelism
AWE Enabled
Max. Worker-Threads
Memory Dynamic
Memory Min.
Memory Max.
Authentication
O Yes O No
O Yes O No
(required with 32bit and > 4GB RAM)
O Yes O No
O Mixed O Windows
SQL Service Settings
SQL Service Account
Local Administrator
Lock Pages in Memory
Perform Volume
Maintenance Tasks
Trace Flags
O Yes O No
O Yes O No
O Yes O No
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 3 of 8
STRYK System Improvement
Performance Optimization & Troubleshooting
Performance Checklists
Version 1.12
Part B.1 – Database Configuration
NAV Database Settings
NAV Database Name
Current Database Size
NAV Build No.
NAV DB Version No.
Recovery Model
Collation
Auto. Close
Auto. Shrink
Auto. Create Stats
Auto. Update Stats
Torn Page Detection
Page Verify
Maintain Defaults
Maintain Views
Maintain Relations
Always Rowlock
Lock Timeout
Find As You Type
Caching Record Set
Security Model
File-Group(s) System
GB:
O Full O Simple O Bulk
O Yes O No
O Yes O No
O Yes O No
O Yes O No O Asynchronously
O Yes O No
O Torn Page Detection O Checksum
O Yes O No
O Yes O No
O Yes O No
O Yes O No
O Yes O No Milliseconds:
O Yes O No
O Standard O Enhanced
PRIMARY
File-Group(s) Data
Other File-Group(s)
Auto. Growth Data
Auto. Growth Log
O MB O % Amount:
O MB O % Amount:
Part B.2 – NAV Application
NAV Application Settings
No.
No.
No.
No.
No.
of
of
of
of
of
Concurrent Users
App. Servers
Companies
Dimensions
Analysis Views
(updated on Posting)
Comment
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 4 of 8
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
Part C – Database Maintenance
Cycle Error Logs
Keep Logs
Maintain Stats
Maintain Indexes
SIFT Maintenance
Clean Up History
Deadlock Detection
Block Detection
Integrity Check
Maintenance Jobs
O Yes O No O Name:
O Yes
O Yes
O Yes
O Yes
O Yes
O Yes
O Yes
O No
O No
O No
O No
O No
O No
O No
O Name:
O Name:
O Name:
O Name:
O Name:
O Name:
O Name:
Remarks:
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 5 of 8
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
Part D – Performance Monitor
Object
Counter
Performance Monitor
Instance
Best
Memory
Available MBytes
n/a
> 100
Memory
Pages/sec
n/a
< 25
Physical Disk
Avg. Read Queue Length
NAV Database file
<2
Physical Disk
Avg. Read Queue Length
NAV Transaction Log file
<2
Physical Disk
Avg. Write Queue Length
NAV Database file
<2
Physical Disk
Avg. Write Queue Length
NAV Transaction Log file
<2
Physical Disk
Time %
NAV Database file
< 50
Physical Disk
Time %
NAV Transaction Log file
< 50
Physical Disk
Avg. sec/Transfer
NAV Database file
< 0,015
Physical Disk
Avg. sec/Transfer
NAV Transaction Log file
< 0,015
Physical Disk
Transfers/sec
NAV Database file
< 120
Physical Disk
Transfers/sec
NAV Transaction Log file
< 120
Processor
% Processor Time
Total
< 80
Processor
% Privileged Time
Total
< 10
Process
% Processor Time
SQL Server Instance
n/a
Process
Page Faults/sec
SQL Server Instance
0
Process
Working Set
SQL Server Instance
n/a
System
Processor Queue Length
<2
System
Context Switches/sec
Network Interface
Current Bandwidth
< 8000
Per
CPU
>= 1GB
Network Interface
Output Queue Length
<2
SQL Server Access Methods
Full Scans/sec
NAV database
n/a
SQL Server Access Methods
Page Splits/sec
NAV database
n/a
SQL Server Access Methods
Lock Escalations/sec
n/a
SQL Server Access Methods
Worktables created/sec
n/a
SQL Server Buffer Manager
Buffer Cache Hit Ratio
> 95
SQL Server Buffer Manager
Free Pages
> 640
SQL Server Buffer Manager
Page Life Expectancy
> 300
SQL Server Buffer Manager
Total Pages
n/a
SQL Server Locks
Lock Request/sec
Total
n/a
SQL Server Locks
Lock Waits/sec
Total
0
SQL Server Locks
Number of Deadlocks/sec
Total
0
SQL Server Databases
Data File(s) Size (KB)
NAV database
n/a
SQL Server Databases
Log file(s) Size (KB)
NAV database
n/a
SQL Server Databases
Percent Log Used
NAV database
n/a
SQL Server General Statistics
User Connections
n/a
SQL Server General Statistics
Processes blocked
0
SQL Server Memory Manager
Total Server Memory (KB)
n/a
SQL Server Memory Manager
Target Server Memory (KB)
n/a
SQL Server Memory Manager
Memory Grants Pending
0
SQL Server SQL Statistics
Batch Requests/sec
n/a
SQL Server SQL Statistics
Re-Compilations/sec
< 100
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Value
Avg.
Page 6 of 8
Performance Checklists
Version 1.12
STRYK System Improvement
Performance Optimization & Troubleshooting
Part E – SQL Profiler
Measurement Start Date/Time: ______________________________________________
Measurement End Date/Time: ______________________________________________
Description:
______________________________________________
Events
Stored Procedures
RPC: Completed
SP: Completed
SP: StmtCompleted
TSQL
SQL: BatchCompleted
SQL: StmtCompleted
SQL Profiler
Columns
Filters
Groups
<none>
Columns
SPID
TextData
Reads
Writes
CPU
Duration
Start Time
End Time
LoginName
HostName
Application Name
EventClass
Application Name
Not Like %SQL%
Reads
Greater or Equal than 1000
Duration
Greater or Equal than 30
Remarks:
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
SSI_ProfilerTrace_SQL2005.tdf
SSI_ProfilerTrace_SQL2008R2.tdf
SSI_ProfilerTrace_SQL2008.tdf
SSI_ProfilerTrace_SQL2012.tdf
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 7 of 8
STRYK System Improvement
Performance Optimization & Troubleshooting
Performance Checklists
Version 1.12
Part F – System Report
Open embedded TSQL script SQL Management Studio and Execute (F5) within context of the NAV database.
Save output to RPT file (CTRL + SHIFT + F) and add report to this document.
QuickCheck.sql
1. Set correct Database Context:
2. Set Result Output “To File”:
3. “Execute” Script:
4. Assign Filename and “Save”:
© 2006-2012, STRYK System Improvement, Jörg A. Stryk
http://www.stryk.info/
Page 8 of 8