Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

Public Property CollectSPRequestAllocationCallStacks As Boolean
Dim instance As SPWebService
Dim value As Boolean

value = 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.

© 2015 Microsoft