Server Management (Insight Manager 7)
1834465 Members
2763 Online
110067 Solutions
New Discussion

I must be missing something???

 
Ayman Altounji
Valued Contributor

I must be missing something???

I wrote a small program to help me better understand how RPM limits memory usage. This program simply mallocs memory a meg at a time and allows it to leak. I confirmed it's functionality by looking at Committed Bytes in PerfMon and the TaskMgr. When I define a swap file of 4GB, the program will run until it can no longer get a valid pointer to the memory allocated at just under 2GB, as expected. So I go into RPM, define a Memory Resource Partion rule as defined below:

Add when 70% usage is sustained for 30 seconds to a maximum of 50MB

I watch the Physical Memory Utilization rise will above 50MB.
However, the program runs just like it does w/o RPM.

I would expect to get a memory allocation error within the program at this 50MB limit. Am I missing something????
1 REPLY 1
Ayman Altounji
Valued Contributor

Re: I must be missing something???

Are you setting an upper memory limit within the Partition itself? The rule will only fire if you reach 70% utilization of the limit set in the Partition.