How to programatically get size of IIS AppPool (at remote, shared host)?

Our client has legacy web hosting (that has been prepaid for 1 year) at a very large, well-known ISP, that I won't mention by name. However, this "well-known" ISP will not tell us the size of the IIS AppPool allocated to us, for "security reasons" (I've never heard of any other web host refuse to share that info before!).

So, we need to determine the size of the AppPool to see if is large enough to run the ASP.NET-based website we've built. Is there a way, programatically in ASP.NET, to obtain the size of the IIS Application Pool assigned to us?
Who is Participating?
Bob LearnedConnect With a Mentor Commented:
You might be able to use a memory profiler, like ANTS, and attach to the worker process for the web site.

ANTS Memory Profiler 8

You might be able to use GC.GetTotalMemory, but I am not sure how accurate it would be.

GC.GetTotalMemory Method

Caveat, "Retrieves the number of bytes currently thought to be allocated."
Bob LearnedCommented:
There are different ways to manage IIS (Microsoft.Web.Administration, System.DirectoryServices, ...), but I haven't found a way to find out the Private Memory Limit from C# code yet.
cdakzAuthor Commented:
Any way to allocate chunks of measured amounts of memory? That way a web app could record how much memory was allocated before an error occurred.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.