I have a sharepoint 2013 site with 100+ subwebs and about 3.5GB documentations. The site performance is normal if I do not setup any enterprise search service.
But once I setup a enterprise search service, the MSSQL and w3wp progresses will spend near 100% CPU for a long time. After the CPU usage turn down, once I click any link on the web page then the CPU usages will grow up to 100% for 15-20 minutes again.
I made the following step to reduce the resource usages on the server.
1. Reduce SharePoint logging, only log down Error events and Unexpected events.
2. Optimize MS-SQL server configuration, give 2 BG minimun memory to the database server, and boost the SQL Server's priority.
3. In the SharePoint search center, limit the crawl impact to 1 document at a time.
But the problem is still not fixed.
Check with the logs, 99% items are similar to:
12/20/2012 02:33:00.60 w3wp.exe (0x15D4) 0x146C
0x6FB7003 7t61 High [Forced due to logging gap, cached @ 12/20/2012 02:33:00.53, Original Level:
Verbose] {0}
12/20/2012 02:33:00.60 w3wp.exe (0x15D4) 0x146C SharePoint Server
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity
12/20/2012 02:33:34.36 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Asp Runtime aj1kl High [Forced due to logging gap, cached @ 12/20/2012 02:33:34.31, Original Level: Verbose]
SPRequestModule.PreRequestExecuteAppHandler cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:34.36 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:34.46 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:34.40, Original
Level: Verbose] SQL connection time: 0.0505 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:34.46 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:34.73 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:34.46, Original
Level: Verbose] SQL connection time: 0.1201 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:34.73 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Web Controls 90i3 High [Forced due to logging gap, Original Level: Verbose] PersonalActions::CreateChildControls()
- Was called. cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.44 w3wp.exe (0x13A4) 0x214C Web Content Management
Publishing aftdl High [Forced due to logging gap, cached @ 12/20/2012 02:33:34.73, Original Level: Verbose]
TaxonomyNavigationContext: Checking for target URL query parameters cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.44 w3wp.exe (0x13A4) 0x214C Web Content Management
Publishing 8vy8 High [Forced due to logging gap, Original Level: Medium] CrossListQueryCache::GetSiteData()
- Query: {0} Url: {1}. {2} cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.53 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.47, Original
Level: Verbose] SQL connection time: 0.0542 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.53 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.62 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.58, Original
Level: Verbose] SQL connection time: 0.0712 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.62 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.70 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
General g3ql High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.67, Original
Level: Verbose] GetUriScheme(/aboutus/Pages/home.aspx) cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.70 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.76 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.75, Original
Level: Verbose] SQL connection time: 0.024 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.76 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.84 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.81, Original
Level: Verbose] SQL connection time: 0.0375 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.84 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.90 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database ahjqp High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.89, Original
Level: Verbose] SQL connection time: 0.0545 cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.90 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
Database 8acb High [Forced due to logging gap, Original Level: VerboseEx] Reverting to process
identity cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
12/20/2012 02:33:35.97 w3wp.exe (0x13A4) 0x214C SharePoint Foundation
General g3ql High [Forced due to logging gap, cached @ 12/20/2012 02:33:35.95, Original
Level: Verbose] GetUriScheme(/depts/people/Pages/Home.aspx) cea0ec9b-b1d5-600d-f3ef-49eb3271ba12
It is real bad that, when this problem appears, even if I reboot the OS, disable the SharePoint Search server, once I access my web site again, the CPU will group up to 100% quickly. (the problem become worse).
That means I have to restore my content database everytime once I use the enterprise search.
Any idea?