My very first blog was discussing best practices around disposing of SharePoint Services Objects: http://yvonneharryman.wordpress.com/2007/08/19/ . Memory leaks caused by objects not disposed can be very tricky to catch and require good code reviews. Now Microsoft is offering a tool to help you find objects that are not being disposed of. This tool can be found at: http://code.msdn.microsoft.com/SPDisposeCheck.
The tool is not perfect but it will do most of the grunt work for you to figure out if memory leaks are in fact in your code. One situation you might run into is a potential false positive. An additional resource I have used to help me in that situation is the following blog:
http://blogs.technet.com/stefan_gossner/archive/2008/12/05/disposing-spweb-and-spsite-objects.aspx
This tool is meant to be used by developers and should not be installed on production machines as I understand it there is no formal support provided.
Tags: