Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Test</strong>ing for Performance and Scalability 223<br />
Area Performance counter name Threshold<br />
Memory Pool Nonpaged Bytes This is the number of bytes in<br />
the nonpaged pool, an area<br />
of system memory for objects<br />
that cannot be written to disk,<br />
but must remain in physical<br />
memory as long as they are<br />
allocated. This value should<br />
remain stable during stress<br />
tests.<br />
Memory Committed Bytes This value is the amount of<br />
virtual memory that is supplied<br />
either by RAM or by a<br />
secondary storage device.<br />
You can use it to calculate<br />
the contention index. This<br />
index is the ratio of CommittedBytes/Total<br />
RAM. This<br />
ratio should be less that 2:1.<br />
Higher ratios mean that there<br />
is too much paging. The only<br />
scenario where a larger ratio<br />
is acceptable is when the<br />
Caching Application Block<br />
adds unique keys to the cache<br />
without using any scavenging<br />
or expiration policies.<br />
Memory Pages/sec This value should be zero. It<br />
represents hard page faults,<br />
which indicates that there is<br />
memory starvation because of<br />
a memory leak.<br />
Memory Available MBytes This value should be stable<br />
during the stress tests. Low<br />
values for SQL Server is<br />
normal because it allocates<br />
as much memory as it can for<br />
caching. In general, the value<br />
should be at least 20 MB for<br />
IIS when it hosts <strong>Enterprise</strong><br />
<strong>Library</strong>. The exception is when<br />
the Caching Application Block<br />
adds unique keys to the cache<br />
without using scavenging or<br />
expiration policies. In this<br />
case, the value is dependent<br />
on the number of items you<br />
add to the cache.<br />
continued