I know I can view certain counters such as memory usage but can I impose limits on individual app domains?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I used to work on a system where we were attempting to do something similar.
With the regular .NET CLR you only get very crude controls. You can find out how much memory the AppDomain is using, but it doesn’t tend to be up to date, and as memory pressure increases – becomes completely unreliable.
There may be a way, however, to do this if you’re willing to go to the level of hosting the CLR through C++, and using the CLR Hosting APIs.
I’ve been told it’s possible to do things such as intercept memory allocation requests from the hosted CLR. You may also be able to limit I/O requests and CPU utilisation too.