SharePoint – Monitor the Search service

Sometime when you hit a performance issue on your SharePoint Server.

This can be caused by the Search Service being to aggressive or taking too long to crawl the data.

Well using Powershell we can list the status and details of the Search Services.

CLS

if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null)
{
    Add-PSSnapin Microsoft.SharePoint.PowerShell;
}
        
Write-Host "Search Service Status ..."
Get-SPSearchService

Write-Host "Search Crawl Service details ..."
$crawlSource = Get-SPEnterpriseSearchCrawlContentSource `
                -SearchApplication (Get-SPEnterpriseSearchServiceApplication)

$crawlSource

 

Output will look like this.

image

Where you can see how long it took the last time and whether the service is still active or Idle.

Sometime the server is overloaded if the Crawl schedules take too long and are overlapping each other.

So this can give you a starting point for debugging Winking smile

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: