没有合适的资源?快使用搜索试试~ 我知道了~
首页Troubleshooting SQL Server
Troubleshooting SQL Server - A Guide for the Accidental DBA By Jonathan Kehayias and Ted Krueger With a Foreword from Paul S. Randal First published by Simple Talk Publishing September 2011
资源详情
资源评论
资源推荐
High Performance SQL Server
Troubleshooting SQL Server
A Guide for the Accidental DBA
Jonathan Kehayias and Ted Krueger
Foreword by Paul Randal
Technical review by Gail Shaw
ISBN: 978-1-906434-77-9
Troubleshooting SQL Server
A Guide for the Accidental DBA
By Jonathan Kehayias and Ted Krueger
With a Foreword from Paul S. Randal
First published by Simple Talk Publishing September 2011
Copyright Jonathan Kehayias and Ted Krueger 2011
ISBN 978-1-906434-77-9
The right of Jonathan Kehayias and Ted Krueger to be identified as the authors of this work has been
asserted by them in accordance with the Copyright, Designs and Patents Act 1988.
All rights reserved. No part of this publication may be reproduced, stored or introduced into a retrieval
system, or transmitted, in any form, or by any means (electronic, mechanical, photocopying, recording or
otherwise) without the prior written consent of the publisher. Any person who does any unauthorized act
in relation to this publication may be liable to criminal prosecution and civil claims for damages.
This book is sold subject to the condition that it shall not, by way of trade or otherwise, be lent, re-sold,
hired out, or otherwise circulated without the publisher's prior consent in any form other than which it is
published and without a similar condition including this condition being imposed on the subsequent
publisher.
Edited by Tony Davis
Technical Review and Additional Material: Gail Shaw
Cover Image by Andy Martin
Typeset & Designed by Matthew Tye & Gower Associates
Table of Contents
Introduction ................................................................................... 16
Who is this book for? ............................................................................................................. 17
Code Examples .......................................................................................................................18
Chapter 1: A Performance Troubleshooting Methodology .......... 19
Defining a Troubleshooting Methodology ........................................................................ 20
Wait Statistics: the Basis for Troubleshooting .................................................................. 23
Virtual File Statistics ..............................................................................................................28
Performance Counters ..........................................................................................................30
Plan Cache Usage ...................................................................................................................38
Summary ................................................................................................................................. 40
Chapter 2: Disk I/O Configuration ................................................42
Disk Configuration: Basic Considerations .........................................................................43
Disk size vs. disk throughput ........................................................................................... 44
Random versus sequential I/O ..........................................................................................45
Choosing the Right RAID Level .......................................................................................... 46
A brief overview of RAID configurations ....................................................................... 48
Disk size and throughput considerations .......................................................................54
Workload considerations ...................................................................................................57
Direct Attached Storage vs. Storage Area Networks .........................................................61
Direct Attached Storage .....................................................................................................61
Storage Area Networks ...................................................................................................... 62
Diagnosing Disk I/O Issues ..................................................................................................65
Common Disk I/O Problems ................................................................................................65
Sizing for capacity instead of I/O performance ............................................................ 66
Incorrect workload isolation ............................................................................................ 67
Incorrect partition alignment .......................................................................................... 68
Incorrect bandwidth using SAN configurations ........................................................... 70
Summary .................................................................................................................................. 71
Chapter 3: High CPU Utilization .................................................. 73
Investigating CPU Pressure ..................................................................................................74
Performance Monitor ........................................................................................................ 74
SQL Trace ............................................................................................................................ 76
Dynamic Management Views ...........................................................................................77
Common Causes of High CPU Usage .................................................................................85
Missing indexes .................................................................................................................. 86
Outdated statistics ............................................................................................................. 88
Non-SARGable predicates .................................................................................................89
Implicit conversions ............................................................................................................93
Parameter sning .............................................................................................................. 95
Ad hoc non-parameterized queries ................................................................................103
Inappropriate parallelism ................................................................................................ 108
TokenAndPermUserStore ................................................................................................ 117
Windows Server and BIOS power saving options .......................................................120
Summary ................................................................................................................................ 122
Additional Resources ........................................................................................................... 122
Chapter 4: Memory Management ............................................... 126
The Self-Tuning Database Engine ..................................................................................... 127
How SQL Server Allocates Memory .................................................................................. 127
32-bit Virtual Address Space limitations.........................................................................131
Using 64-bit SQL Server ................................................................................................. 140
Memory configuration options with 64-bit SQL Server ............................................143
Diagnosing Memory Pressure ............................................................................................149
Memory-related counters ................................................................................................150
Memory-related DMVs .....................................................................................................154
Common Memory-Related Problems ................................................................................155
The SQL Server memory leak myth ............................................................................... 155
Paging problems ................................................................................................................ 155
OS instability due to Lock Pages in Memory
plus unlimited max server memory ...............................................................................156
App Domain is marked for unload due to memory pressure .................................... 157
剩余357页未读,继续阅读
Eng_cs
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0