这种问题有可能是程序中某个文件流或者字符流或字节流使用完了没有关闭,导致内存一直被占用,检查一下程序中的代码,关闭流。
临时解决:重启一下IIS站点即可临时解决问题。
彻底解决:1.在web.config文件中配置如下:
<system.web>
<httpRuntime maxRequestLength="2097152" maxQueryStringLength="204800"
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="3000000000" maxQueryString="2147483647"></requestLimits>
</requestFiltering>
</security>
</system.webServer>
2.检查代码,用完的文件流及时关闭销毁。