Process class?

  • Thread starter Thread starter Rob Perkins
  • Start date Start date
R

Rob Perkins

Hi,

I'm trying to figure out if one of our products is trying to allocate
or reserve more than its 2 GB limit of addressable memory. It's a CFD
simulator, so it's not out of the question that that could happen.

I thought to use the System.Diagnostics.Process class to figure it
out, but I'm not sure which property or combination of properties will
help me tell if we're getting close.

Which property, if any, or which combination of properties will tell
me what I need to know?

Rob
 
The WorkingSet property might help you find how much memory is being used.
You could also look at the performance counters.

However, if it's trying to allocate above 2GB, I think that the call will
just fail (unless you're running /3GB).

-mike
MVP
 
Michael Giagnocavo said:
The WorkingSet property might help you find how much memory is being used.

The WorkingSet property only shows how much or the allocated RAM/cache
memory is paged in. I need the "reserved" count, because I think my
process is reserving over 2 GB memory.
You could also look at the performance counters.

Yes. Which one?
However, if it's trying to allocate above 2GB, I think that the call will
just fail (unless you're running /3GB).

I'm trying to determine if that's the reason the calls are failing. It
certainly isn't because of lack of swap space, on these 200 GB hard
drives...

Rob
 
Back
Top