SPWebService.CollectSPRequestAllocationCallStacks property
If true, the callstack of every SPRequest allocation will be collected.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property CollectSPRequestAllocationCallStacks As Boolean
Get
Set
'Usage
Dim instance As SPWebService
Dim value As Boolean
value = instance.CollectSPRequestAllocationCallStacks
instance.CollectSPRequestAllocationCallStacks = value
public bool CollectSPRequestAllocationCallStacks { get; set; }
Property value
Type: System.Boolean
Returns Boolean.
Remarks
This is a diagnostic setting that facilitates the debugging of leaks of SPSite and SPWeb objects. If not disposed properly these objects can hold onto large amounts of memory. By enabling this setting, traces in the trace log that report leaks will contain callstacks. However, callstack collection is expensive so this should only be enabled during a brief diagnostic period.