Undisposed Object Finder Application

Rating: No reviews yet
Downloads: 50
Released: May 31, 2013
Updated: Jun 1, 2013 by YuriLeontyev
Dev status: Beta Help Icon

Recommended Download

Application spSitePro.UndisposedObjectsFinder.zip
application, 25K, uploaded May 31, 2013 - 50 downloads

Release Notes

WinForms application that goes through ULS logs, parses them and detects log messages for undisposed objects.

It allows to:
  1. Scan for undisposed objects log entries and show full stack trace of undisposed SPRequest creation
  2. Exclude logs messages (to filter Microsoft dispose issues)
  3. Include only specific log messages

To prepare your environment:
  1. Enable logging full stack trace for dispose messages (see code below)
  2. Test business logic
  3. Analyze the results using the application

PowerShell code to enable logging full stack trace for undisposed objects:
System.Reflection.Assembly::LoadWithPartialName("Microsoft.SharePoint") > $null
$contentSvc = Microsoft.SharePoint.Administration.SPWebService::ContentService
$contentSvc.CollectSPRequestAllocationCallStacks = $true
$contentSvc.Update()

Screenshots:
https://spsitepro-web.sharepoint.com/Blog/Lists/Photos/screen1.png
https://spsitepro-web.sharepoint.com/Blog/Lists/Photos/screen2.png

Reviews for this release

No reviews yet for this release.