内存是性能测试第一个监控对象,系统瓶颈的第一个排除问题是内存问题。
内存问题主要检查应用程序是否存在内存泄漏。如果是内存泄漏, Process/Private Bytes 计算器和Process/Working Set 计算器的值会升高,同时,Available Bytes的值会降低。
内存泄漏应该通过长时间,用例研究分析当所有内存都耗尽时,应用程序反应的情况来检验。
Object | Counters | 参考值 |
Memory | Available MBytes | >=10%的物流内存值 |
Memory | Page/sec | 0~20 |
Page Input/sec Page Reads/sec | Page Input/sec通常 >= Page Reads/sec | |
Memory | Cache Bytes | 默认50%的可用物理内存 |
Internet Information Services Global | File Cache Hits% | 80%左右 |
Memory | Committed Bytes | <=75% |
System | Processor Queue Length | >2 |
Processor相关 | ||
Processor | %Processor Time | <75% |
| Interrupts/sec %Time | 如果CPU使用率超过90%,且Interrupts/sec %Time大于15%,则CPU可能负荷过重,并发生中断 |
网络相关 | ||
Network Interface | Bytes Total/sec | <50% |