Enabling the SharePoint 2010 Developer Dashboard

 

Although this tool is mainly designed to assist developers in creating fast code, it can also be a useful tool for the administrators by providing performance and trace information when troubleshooting slow loading/rendering pages.

It can be enabled using either Powershell, stsadm – or you can download a nice configuration feature for use with the Central Administration.

The Powershell approach:

Launch the “SharePoint 2010 Management Shell” and enter the following:

$DevDashboardSettings = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$DevDashboardSettings.DisplayLevel = 'OnDemand';
$DevDashboardSettings.RequiredPermissions = 'EmptyMask';
$DevDashboardSettings.TraceEnabled = $true;
$DevDashboardSettings.Update();

The DisplayLevel  value can be ‘On’, ‘Off’ or ‘OnDemand’.The suggested RequiredPermissions ‘EmptyMask’ value activates the Dashboard for all (including anonymous) users.

Or you can use stsadm:

stsadm -o setproperty -pn developer-dashboard -pv [on|off|ondemand]

An even easier way is to download Wictor Wiléns configuration feature and deploy it to the Central Administration:

Download the .wsp file from here: http://www.wictorwilen.se/Post/SharePoint-2010-Developer-Dashboard-configuration-feature.aspx

Install the feature to your farm using Powershell:

Add-SPSolution -Literalpath <fullpath\filename.wsp>

Deploy and activate the feature on your farm, and go to Central Administration -> General Application Settings -> Developer Settings

All set! 😉

Dette indlæg blev udgivet i SharePoint 2010 Tips & Tricks og tagget , , . Bogmærk permalinket.