1. 修改machine.config,添加memoryLimit="20"

<processModel
      autoConfig="true"
      memoryLimit="20"
    />

此效果是全局的,默认值为60。

2. 如果是针对某个web app,要在web.config中设置使用内存的大小,需要先修改machine.config:

<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="Everywhere" allowLocation="false"/>

然后在web.config中再设置:

<system.web>
     <processModel memoryLimit="20"/>

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
相关资源
相似解决方案