Potentially excessive number of SPRequest objects error
description
I am getting this error when using the ECQWP. This did not occur in Development or Test but under load in Production we are seeing these errrors in the ULS logs.
I did find a possible similar issue around xsl style link [sheets|http://www.tech-archive.net/Archive/SharePoint/microsoft.public.sharepoint.windowsservices/2007-02/msg00073.html] but could not remove this error even with having inline XSL in the web part itself rather than an XSLLink like we currently have. The web part renders fine and just wanted to clean up the issue in the ULS logs as it could possibly be the reason our w3wp.exe process is consuming so much memory.
08/04/2009 14:28:57.95 w3wp.exe (0x0FF8) 0x0B70 Windows SharePoint Services General 0 Medium Potentially excessive number of SPRequest objects (9) currently unreleased on thread 29. Ensure that this object or its parent (such as an SPWeb or SPSite) is being properly disposed. Allocation Id for this object: {9410FF4D-9085-466B-AA39-19D272A2F412} Stack trace of current allocation: at Microsoft.SharePoint.SPRequestManager.Add(SPRequest request, Boolean shareable) at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous) at Microsoft.SharePoint.SPWeb.InitializeSPRequest() at Microsoft.SharePoint.SPWeb.EnsureSPRequest() at Microsoft.SharePoint.SPWeb.get_Request() at Microsoft.SharePoint.SPWeb.SetMondoPr...
08/04/2009 14:28:57.95* w3wp.exe (0x0FF8) 0x0B70 Windows SharePoint Services General 0 Medium ...ocHint(Int32 hint) at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId, Int32 mondoHint) at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId) at CKS.EnhancedContentQueryWebPart.Wrappers.ListItemWrap..ctor(DataRow dr, SPSite site) at CKS.EnhancedContentQueryWebPart.ContentQueryWithContextMenus.EditDataRow(DataRow row, Int32 itemIndex) at CKS.EnhancedContentQueryWebPart.ContentQueryWithContextMenus.ProcessItems(DataTable dt) at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.IssueQuery() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String viewPath) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformSelect() ...
08/04/2009 14:28:57.95* w3wp.exe (0x0FF8) 0x0B70 Windows SharePoint Services General 0 Medium ... at Microsoft.SharePoint.WebPartPages.DataFormWebPart.DataBind() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.EnsureDataBound() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls() at CKS.EnhancedContentQueryWebPart.ContentQueryWithContextMenus.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean...
08/04/2009 14:28:57.95* w3wp.exe (0x0FF8) 0x0B70 Windows SharePoint Services General 0 Medium ... includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.Pro...
08/04/2009 14:28:57.95* w3wp.exe (0x0FF8) 0x0B70 Windows SharePoint Services General 0 Medium ...cessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)