为什么我的"开箱即用" SharePoint导航看起来像是内存泄漏
时间:2020-03-06 14:51:13 来源:igfitidea点击:
我的网站具有很深的导航结构,而且开箱即用的导航经常会泄漏内存,尤其是SPWeb对象。
日志消息看起来像
Potentially excessive number of SPRequest objects (14) currently unreleased on thread 5. Ensure that this object or its parent (such as an SPWeb or SPSite) is being properly disposed.
解决方案
Stefan Go?ner的博客文章似乎回答了这个问题。问题不是SPWeb对象没有关闭,而是一旦达到一定的分配阈值(默认为8),就会在日志中创建警告。
根据站点结构,将要创建的数量会有所不同。