Profiling SharePoint 2010
Published 09 July 2013
This page only applies to ANTS Memory Profiler 7.2 and earlier.
ANTS Memory Profiler 7.2 and earlier do not support profiling SharePoint 2010, but this workaround may let you profile managed code running on a SharePoint 2010 server with IIS 7.
To profile SharePoint 2010 with IIS 7:
- Open the IIS applicationHost configuration file.
By default, this is located in C:\Windows\system32\inetsrv\config\applicationHost.config
- In the <globalModules> element, comment out the following line:
<add name="SharePoint14Module" image="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" preCondition="appPoolName=SharePoint Central Administration v4;SharePoint - 80" />
- Immediately below this line, add the following line:
<add name="SharePoint14Module" image="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" preCondition="appPoolName=RGTestAppPool;SharePoint - 80" />
This sets a precondition allowing ANTS Memory Profiler to load the SharePoint server DLL. ANTS Memory Profiler will now be able to profile code on the Sharepoint server.
- Follow the instructions on Profiling SharePoint.