Collect and Analyse Troubleshooting Data Flashcards

1
Q

What is SQL Server Profiler?

A

It can be used to find problems with slow queries (find cause)

capturing series of t-sql statements leading up to a problem

Monitor performance of SQL to fine tune workloads

Correlating performance counters to diagnose problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you get to SQL Server Profiler?

A

Tools -> SQL Server Profiler

Right click in query and click [Trace Query in SQL Server Profiler]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is going to replace Sql Server Profiler?

A

Extended Events (XEvents)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where is Extended Events found?

A

SSMS -> Management -> Extended Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s a benefit to using XEvents over SQL Server Profiler?

A

XEvents is more lightweight than Profiler (Less resources)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is System Monitor?

A

It is able to monitor SQL Server as well as things outside of SQL. (Device usage, memory, threads, processes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why are disk performance counters disabled on System Monitor?

A

Because there is a noted significant performance impact in collecting disk metrics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you enable disk performance for System Monitor?

A

in a command prompt type:

diskperf -Y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Within System Monitor, what is the standard expectation for % Idle Time?

A

Less than 60%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Within System Monitor, what is the standard expectation for average disk sec/Read (Write)?

A

less than 20 Milliseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Within System Monitor, what is the standard expectation for current disk Queue Length?

A

Not higher than 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Within System Monitor, what is the standard expectation for Memory Available MBytes?

A

Minimum of 10% available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Within System Monitor, what is the standard expectation for Memory Pages/Second?

A

No higher than 1000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Within System Monitor, what is the standard expectation for Network Bytes Total / Sec?

A

Preferably under 40%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Within System Monitor, what is the standard expectation for Paging File % Usage?

A

No higher than 10%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you save System Monitor data?

A

Add a new Data Collector Set under User Defined

17
Q

What do you use to identify Memory Bottlenecks?

A

Look at Memory:

  • Available Bytes
  • Pages/Sec
  • Process: Working Set (How much memory is being used by a process)

SQL Server:

  • Buffer Manager: Buffer Cache hit ratio
  • Buffer Manager: Database Pages
  • Memory Manager: Total Server Memory (KB)