Last post Jan 27, 2017 08:22 AM by simone.deg
Jan 25, 2017 04:27 PM|simone.deg|LINK
I have a production server with 8gb ram Windows 2012 and IIS 7.5. The server hosts many .NET 4 applications (that use sessions) using about 20 application pools.
From the Task Manager I see that approximately 96/98% of the ram is constantly used and every process related to application pool allocates memory from 120MB to 500mb.
I read that this is not a reliable indicator because the .NET garbage collector keeps the memory allocated but the memory is released if the O.S. needs it.
I did a test by opening with a text editor some large text files and the memory is releasedby the application pool.
How can I check if the server really needs more RAM?
Jan 26, 2017 05:23 AM|HostingASPNet|LINK
Try to make/simulate more sites traffic and to see the result. If the recent used memory is 98% then it will be good to increase it.
Jan 26, 2017 08:48 AM|simone.deg|LINK
Hello, thanks for your answer.
In my test I see that when I open large text files with a text editor, the memory reported by Task manager used by the editor is 800mb but the total memory used decreases from 98% to 96% (that seems a non-sense).
When I close the text editor the total memory used is 86%, but after some time the total memory used reaches 96/98% again.
So it seems there is at least a 10% of memory allocated by application pools but not used.
So I'm looking for an indicator (for example performance counter) to check the memory really allocated.
Jan 26, 2017 09:17 AM|PatriceSc|LINK
On the .NET side try perhaps
https://blogs.msdn.microsoft.com/maoni/2004/06/03/gc-performance-counters/ to see the allocation scheme for your app. Also maybe memory paging counters at the OS level (try perhaps a Windows admin group for this one).
Jan 27, 2017 08:22 AM|simone.deg|LINK
ok thank you