Monitoring ASP.NET application memory from within the application
问题 I'm looking for a way for the application itself to monitor the amount of memory it is using, so I can record it in a log file every hour or so and keep an eye on the applications usage. Its all hosted so we can make changes to the system to see what is going on so the solution will have to be from within the application code. We may in future use the memory information to affect the caching policies. 回答1: Hmm, how detailed information do you need? If you just want the memory usage you can