Friday, February 18, 2011

Enabling/ Disabling Developer Dashboard in SharePoint 2010

Developer dashboard is not only for Developers, the administrators can also take good advantage of it. They can do quantitative analysis if their site is slow then how much slow and when the users started raising complaints.

There are three in which this DD can remain:

1. OFF (which is by default)

2. ON - which turns it on all the time. It is generally not a good option as it causes performance overhead and turning it on would make all the Site Collection Admins to see it.

3. On Demand – It appears like a small button and site collection admins can turn it on any time they want. This is most feasible option.

To set it to OnDemand, execute following powershell cmdlets:

$dd = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings

$dd.DisplayLevel = ‘OnDemand’

$dd.TraceEnabled = $true

$dd.Update()

This is enabled on the whole farm so you can go and look the the Right-Top of the site where a white colored button should appear. Upon clicking that, you should be able to see the developer dashboard.

Display Level can be:

$dd.DisplayLevel = ‘OnDemand’

$dd.DisplayLevel = ‘On’

OR

$dd.DisplayLevel = ‘Off’

No comments:

Post a Comment

Feel free to give constructive feedback or let me know if it was helpful.