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?
cdakzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
0
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.
0
Bob LearnedCommented:
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
http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/

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

GC.GetTotalMemory Method
http://msdn.microsoft.com/en-us/library/system.gc.gettotalmemory.aspx

Caveat, "Retrieves the number of bytes currently thought to be allocated."
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.