0

I am trying to get reliable information on when my C# application (Windows XP) will run out of memory. I did some research and tests on my machine and picked the most reliable perfmon counters:

Memory.Pages Output/sec
Memory.Available Bytes

I use thresholds and AND operator and it works quite well, but on the client machine (also Windows XP) both counters are useless. Available memory does not drop below 1GB and pages output is constant zero. After reading some logs I still don't see any useful counter.
Counters like committed memory give correct value, but the program runs out of memory (with paging killing the performance) after crossing 50%-60% of the 5GB available.

Any alternatives? I wouldn't like to be forced to try to allocate memory and catch OutOfMemory exceptions during the computations.

4

1 回答 1

0

请参阅Windows 进程何时耗尽内存?

长话短说,您想要检查进程的私有字节、虚拟字节和/或工作集。

于 2009-01-04T20:42:36.237 回答