The developer dashboard is a very handy tool in Microsoft SharePoint Server 2010, when it comes to analyzing how your site is loading and finding potential bottlenecks. It displays information about databases, webservices, the current page itself and so on. You can see an example of the developer dashboard here. Once enabled, it can be found scrolling at the bottom of the page you want to analyze.
There are three states the developer dashboard can be in:
- On: Displayed
- Off: Not displayed
- On Demand: Can be toggled by the user.
And you have three possibilities of turning it on or off:
- SharePoint COM
In this post, we’ll just focus on the STSADM.exe method, since it is the fastest one. STSADM.exe is located in the HIVE folder of SharePoint 2010 (usually “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\”, and there in the “BIN” folder).
The STSADM.exe Method:
On: stsadm -o setproperty -pn developer-dashboard -pv on
Off: stsadm -o setproperty -pn developer-dashboard -pv off
On Demand: stsadm -o setproperty -pn developer-dashboard -pv ondemand
Turning it on “On Demand” creates a new button in the menu, which is shown in the following picture:
That’s it! The command takes a few seconds to run and then quits with a “Operation successful” message.
Best regards and stay tuned till the next time,