SharePoint – Server High CPU !

Very often you will see a SharePoint (backend) server with High CPU ?

In our case this is not different. Especially when the SharePoint Backend server also functions as a SharePoint Search Server.

We have 1 Virtual Server where the SP Search Services are installed on as well as the Microsoft Search Server 2010 Express.

Every time when the timer job start the Search crawling actions, it hit the roof. In most cases after a reboot of the server it goes to 100% !

image

To keep the noise down you can apply this trick.

Go and look for all the  Search Processes running.

image

And set for each one the Process Priority to LOW

image

As well as the Affinty to 1 CPU Core.

image

This should keep it down untill a next reboot of course Winking smile

Or you can apply a PowerShell Script for this

CLS

$ret =  Get-Process mss* | Select-Object ID, name, Description, ProcessorAffinity, PriorityClass

echo $ret | Out-GridView 

This give you a glimp of the current settings.

image

I will add the Set Affinity / Priority script later.

They can explain it better then I do.

http://blogs.technet.com/b/heyscriptingguy/archive/2010/04/12/hey-scripting-guy-april-12-2010.aspx

Some extra tuning that can be done is to set the EnterpriseSearchService Performance level to REDUCED.

You need to use this PS command.

CLS

Get-SPEnterpriseSearchService | select PerformanceLevel

# If it shows PartlyReduce you can set it to "REDUCED"

Set-SPEnterpriseSearchService -PerformanceLevel Reduced;

Enjoy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: