sharepoint saturday belgium 2014 sp2013 - advanced troubleshooting and performance testing

47
Advanced Troubleshooting and Performance Testing #SPSBE SPSBE31 Donald Hessing April 26 th , 2014

Upload: biwug

Post on 11-Nov-2014

276 views

Category:

Technology


8 download

DESCRIPTION

 

TRANSCRIPT

Page 1: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Advanced Troubleshooting and Performance Testing

#SPSBE SPSBE31

Donald Hessing

April 26th, 2014

Page 2: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Who am I?

Donald Hessing Principal Consultant | Thought Leader SharePoint @Capgemini

Netherlands Microsoft Certified Master (MCM) - SharePoint (Virtual) Technology Solution Professional for Microsoft Work full time on SharePoint since 2007 | #DEV | #ITPRO | #STRATEGY [email protected] | @dhessing | #SPSBE SPSBE31

Page 3: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 4: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 5: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

It’s not all about SharePoint!

Load Balancer

Page 6: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Understand response time

Page 7: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Response Time

1414 KB

1024 KB (10Mb)

20

ms

(44

/2)300 ms 300 ms 2.6 sec.

1414KB

100 KB (1Mb)

150

ms

(44

/2)300 ms 300 ms

15.42

sec

IE8, FireFox 3 – 6

connections max.

TCP Slow Start

Page 8: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

SQL IO Characteristics

Operation Random / Sequential Read/Write Size Range

OLTP – LOG Sequential Write 512 bytes – 64KB

OLTP- Data Random Read / Write 8KB

Bulk Insert Sequential Write 8KB – 128KB (in

multiples of 8KB)

Read Ahead Sequential Read 8KB – 128KB (in

multiples of 8KB)

Backup Sequential Read/Write 1MB

Restore Sequential Read/Write 64KB

Page 9: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Validate configurations prior to deployment

Page 10: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Customer Example – IOMonitor.exe

Design TEST - 2 KB Random - Read/Write (67%/33%)

Drive

Expected

IO

Total

IO

Average

Read Time

(ms)

Average Write

Response Time

(ms)

Maximum

Read Time

(ms)

Maximum

Write

Time(ms)

C:\ 60 314 3 1 197 6

L:\ 300 419 2 3 31 11

S:\ 600 386 3 3 115 28

T:\ 1200 51 35 52 89 2501

U:\ 1000 43 5 59 41 1817

Page 11: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Monitoring Pending Disk IO

http://henkvandervalk.com/sql-under-the-hood-part-1-monitoring-current-pending-disk-ios

Page 12: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 13: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Let’s investigate….

Who

What

What

When when

Where

Why Why

Page 14: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

…defines the scope

Lab\User8

30 seconds render time

Mon-Fri between 0900-1100 CST, but not on weekends

WFE1

Typically achieves results between 5-7 seconds

When user is searching for “Widget” and hits WFE1

Page 15: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

ULS Viewer

Page 16: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Fiddler

Page 17: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Fiddler – Troubleshooting WCF services

http://127.0.0.1:8888

Page 18: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Fiddler – Troubleshooting Search

Page 19: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 20: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

LOGPARSER 2.2

Page 21: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

LOGPARSER

Page 22: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

IIS LOGS

Page 23: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Example – Find slow pages

Page 24: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 25: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 26: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Customer Case

Page 27: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Questions?

Page 28: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

LOGPARSER "SELECT QUANTIZE(TO_TIMESTAMP(date, TO_LOCALTIME(time)), 3600) AS Hour, DIV(SUM(sc-bytes),1048576) AS TotalBytesSent, DIV(SUM(cs-bytes),1048576) AS TotalBytesReceived FROM *.log GROUP BY Hour ORDER BY Hour" -i:w3c

Determine network capacity..

Number of users 5.000 10.000 20.000 50.000

Bandwidth (Mbit/s) 25 50 100 250

Page 29: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Response times

SC-STATUS AVGTIME MAXTIME HITS

200 215 33882 30581

302 56 3104 2949

400 58 78 13

401 16 3166 14811

403 31 31 1

404 81 2745 1472

500 63 109 12

Page 30: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Response Times Web Frontend Servers

Page 31: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Response times per DOMAIN

Page 32: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Response times for DOMAINA per WFE

Page 33: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Why are my responses for DOMAINA users SLOW on WFE2?

Page 34: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 35: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Win32Status

Page 36: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

SC-WIN32-STATUS

Win32-Status Description Hits

1 Incorrect function. 17

2 The system cannot find the file specified. 4788

5 Access is denied. 1

64 The specified network name is no longer available. 1663

121 The semaphore timeout period has expired. 964

995The I/O operation has been aborted because of either a thread exit or an application

request.85

1236 The network connection was aborted by the local system. 3934

1330 The password for this account has expired. 6

2148074248 The token supplied to the function is invalid 120

2148074252 The logon attempt failed 271

2148074254 No credentials are available in the security package 117831

2148074257 No authority could be contacted for authentication. 9379

Page 37: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 38: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Performance Testing

Page 39: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Custom Web Test Request Plugin

Page 40: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing
Page 41: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Valid testing data is essential for performance tests

Page 42: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Content Generation

• Download a copy of the wiki databasehttp://en.wikipedia.org/wiki/Wikipedia:Database_download#English-language_Wikipedia

• English ~40GB XML Data

• Dutch ~10GB XML Data

• Wrote custom wiki parser for generating

Page 43: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Load Testing

Page 44: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Performance Counters

% CPU SharePoint Servers Threshold

% CPU SQL Server <75%

% CPU SharePoint Servers <75%

# Available Mbytes SharePoint Servers < 20%

Avg. Disk Write Queue Length < 2 Per Spindel

Avg. Disk Read Queue length < 2 Per Spindel

Avg. Disk Sec/Read SQL Server Disks < 12 ms – 0.012

Avg. Disk Sec/Write SQL Server Disks < 12 ms – 0.012

Page 45: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Load Results

Avg=48%

Avg=29%

Avg=11%

Avg=0.013

Avg=6.18

Page 46: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Thank you!

Page 47: SharePoint Saturday Belgium 2014 SP2013 - Advanced troubleshooting and performance testing

Thanks to our sponsors!

Gold

Silver