Export (0) Print
Expand All
Expand Minimize

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)

'Declaration
PublicPropertyCollectSPRequestAllocationCallStacksAsBooleanGetSet
'Usage
DiminstanceAsSPWebServiceDimvalueAsBooleanvalue = instance.CollectSPRequestAllocationCallStacks

instance.CollectSPRequestAllocationCallStacks = value

Property value

Type: System.Boolean
Returns Boolean.

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.

Community Additions

ADD
Show:
© 2014 Microsoft