07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Test</strong>ing for Performance and Scalability 227<br />

Area Performance counter name Threshold<br />

SqlServer:AccessMethods Full Page Splits/sec This value should be less than<br />

10.<br />

SqlServer:Buffer Manager Buffer Cache Hit Ratio This value should be higher<br />

than 80 percent.<br />

SqlServer:Buffer Manager Lazy Writes/sec This value should be close to<br />

zero.<br />

SqlServer:Cache Manager Cache Hit Ratio This value should be higher<br />

than 80 percent.<br />

SqlServer:Locks Average Wait Time This value should be less than<br />

2 ms and remain stable during<br />

the stress tests.<br />

SqlServer:Locks Number of Deadlocks/sec This value should be zero.<br />

SqlServer:Memory Manager Total Server Memory This value should be less than<br />

75 percent.<br />

SqlServer:Memory Manager Lock Blocks This value should be stable<br />

during the stress tests.<br />

Understanding and Measuring Transaction Times<br />

This section discusses the threshold levels for the different transaction metrics. The<br />

threshold defines the highest value that the transaction metric can be and still be acceptable.<br />

This section also demonstrates how to measure transactions. Here are the<br />

acceptable threshold values:<br />

● Transaction Times Threshold. The application block’s threshold should be no<br />

more than 12 percent to 32 percent higher than the baseline transaction times<br />

metric.<br />

● TransactionsPerSecond. The application block’s threshold metric should be no<br />

more than 12 percent to 32 percent higher than the baseline’s transactions per<br />

second metric. The total transactions or total hits can be proved by reading Web<br />

Service \Total Anonymous Users performance counter after recycling IIS in<br />

between test cases.<br />

● Total Transactions. The application block’s threshold metric should be no more<br />

than 12 percent to 32 percent higher than the baseline’s total transactions metric.<br />

To find the total transactions (or total hits), examine the Web Service\Total<br />

Anonymous Users performance counter. You must stop and restart IIS between<br />

test cases because the counter starts to count when the service starts.<br />

A transaction in a Web test is like a timer. You can encapsulate a set of actions in a<br />

transaction. You can think of a typical transaction as starting a timer, requesting a<br />

page, requesting another page, and then ending the timer. This series of actions, from<br />

start to end, constitutes a transaction. You can make more granular measurements of

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!