大网数据广告活动
Web服务器与PHP

Cache trimming occurs in an ASP.NET web application

· 52CE 我爱测

This article provides resolutions for the problem of cache trimming in an ASP.NET web application running in IIS.

This article helps you resolve the problem of cache trimming in an ASP.NET web application running in Internet Information Services (IIS).

Original product version:   Internet Information Services
Original KB number:   2537528

Symptom

Consider the following scenario:

  • You have an ASP.NET 4.0 web application running on a 64-bit version of Microsoft Windows.
  • The web application is hosted in an IIS worker process that is configured to run in 32-bit mode.
  • The application pool is configured with a Private Bytes recycle limit of 0 (unlimited).

In this scenario, you may see lots of caches trims occurring when the work process' private bytes usage reaches approximately 740 megabytes (MB). To alleviate the problem, you have to restart the application pool or unload the application domain.

Status

Microsoft has confirmed that this is a bug in the product(s).

Resolution

To work around this problem, configure the application pool's Private Bytes memory limit to be 4 GB. A value of 4 GB is effectively the same as the default value of 0 (unlimited) for the 32-bit application pool process running on the 64-bit operating system (wow64).

More information

For more information on configuring application pool recycling for private bytes usage in IIS, see Configure an Application Pool to Recycle after Reaching Maximum Used Memory (IIS 7).

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/11/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。