Configure .NET CLR RAM usage

对着背影说爱祢 提交于 2019-12-01 10:34:59

Have at look at the machine.config file in

%SystemRoot%\Microsoft.NET\Framework[version]\CONFIG

The memoryLimit attribute controls the percentage of physical memory that a process is allowed to consume. I know this is not exactly what you are looking for but the closest I could find.

You might want to look into using PublicDomain. It is a library that exposes a lot of lower level capabilities, such as spawning processes with memory limits. There is actually a CodeProject article that describes how to do exactly that with PublicDomain:

http://www.codeproject.com/KB/threads/Setting_Max_Memory_Limit.aspx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!