Wednesday 4 July 2012

SQL Server CPU running at 100% during a full or incremental crawl


We were researching which SQL versions were ok while troubleshooting a problem we had with the SQL Server CPU running at 100% during a full or incremental crawl.
After verifying there were no bottlenecks elsewhere in the farm we turned to SQL and CU version.
Despite there being no errors on the SQL server the SQL guy noticed that some of the SQL queries were not being handled well. 
We were running SQL 2008 R2 Service Pack 1 with Cumulative Update 3 so re-check for recommended SQL versions.


SharePoint 2010 and SQL Hotfix Dependencies
SharePoint Joel has a great article on SQL versions and hotfix dependencies

The above article showed that we should be ok but a short Google later turned up these chaps with the same issue with SQL CPU running at 100%.


An upgrade to SQL 2008 R2 SP1 CU 7 fixed the problem and we were able to do a Search Content source crawl without crippling our SQL server. 



This SQL article has more info on the issue.
Article ID: 2658214 - Last Review: April 12, 2012 - Revision: 5.0
FIX: Poor performance when you run a query that contains correlated AND predicates in SQL Server 2008 or in SQL Server 2008 R2 or in SQL Server 2012
To resolve this issue, apply the following cumulative update. After you apply the update, you must enable trace flag 4137 to add the new logic for the cardinality estimation of AND predicates.
After patching it is necessary to add the switch /4137 (or -4137) as a startup parameter for the patched SQL instance in order to activate the remedy for this particular problem

Monday 2 July 2012

Uninstalling SharePoint Diagnostic Studio 2010

How to uninstall SharePoint Diagnostic Studio 2010

SharePoint Diagnostic Studio 2010 is actually part of the SharePoint 2010 Admin Tookit.


To uninstall a specific tool from the SharePoint 2010 Administration Toolkit
1.  From Programs and Features, select the Microsoft SharePoint 2010 Administration Toolkit and click Change.
The same dialog box is displayed if you run the SharePoint2010AdministrationToolkit.exe file instead of using Programs and Features.
2. Select the tool you want to remove.
3. Click Next, and then click Finish.

Detailed here : http://technet.microsoft.com/en-us/library/cc508848


Note : installing the tool provisions a solution globally "extendeddiagnosticproviders.wsp", this is not removed when you un-install the tool.



Also note, SharePoint Diagnostic Studio (SPDiag) 2010 can place significant load on SharePoint servers
http://support.microsoft.com/kb/2655725

MS say :
Using the SharePoint Diagnostic Studio (SPDiag) 2010 can consume significant network bandwidth and other resources on the server being monitored as well as on the database server used to host the project database.
Evaluate the need to have the toolkit installed.
Uninstall the SharePoint Diagnostic Studio 2010 if it is not required.


It's nice to have clean working performing environments.