简体   繁体   English

IIS 应用程序池中内存限制的最佳实践

[英]Best practices for memory limits in an IIS app pool

I wanted to know what people used as a best practice for limiting memory on IIS [5/6/7].我想知道人们使用什么作为限制 IIS 上内存的最佳实践 [5/6/7]。 I'm running on 32bit web servers with 4GB of physical memory, and no /3GB switch.我在具有 4GB 物理内存且没有 /3GB 开关的 32 位 Web 服务器上运行。 I'm currently limiting my app pools to 1GB used memory.我目前将我的应用程序池限制为 1GB 已用内存。 Is this too low?这太低了吗? any thoughts?有什么想法吗?

All the limits in the application pool are for bad behaving apps.应用程序池中的所有限制都是针对行为不良的应用程序。 And more specifically:更具体地说:

  1. To prevent the bad app from disturbing to good apps.防止坏应用干扰好应用。
  2. To try and keep the bad app running as much as possible.尽量让坏应用保持运行。

In that light, the answer is of course: It depends.有鉴于此,答案当然是:视情况而定。

If your application is leaking then without a limit it will crash around 1.2 - 1.6 Gb (if memory serves).如果您的应用程序泄漏,那么它会在没有限制的情况下崩溃 1.2 - 1.6 Gb(如果内存可用)。 So 1 Gb is sensible.所以 1 Gb 是明智的。 If during normal operation your application consumes not more than 100 Mb and you have many app pools on the server, than you should set the limit lower to prevent one app from damaging other apps.如果在正常操作期间您的应用程序消耗不超过 100 Mb 并且您在服务器上有许多应用程序池,那么您应该将限制设置得较低以防止一个应用程序损坏其他应用程序。

To conclude: 1 Gb is sensible.总结:1 Gb 是明智的。 Hitting the limits should be treated as an application crash and should be debugged and fixed.达到限制应视为应用程序崩溃,应进行调试和修复。

David Wang blog is a good resource on those issues. David Wang 的博客是有关这些问题的很好的资源。

MS 现场工程师有一篇关于这个主题的精彩文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM