Configuration of sytem RAM : 12GB
I don't understand why server consume too much memory in two particular process
- Microsoft SharePoint Foundation
- SharePoint Search Component
Tried Solution: Search service configure in "reduce" level Reference
Search is a pretty resource intensive component of a SharePoint farm. If the system has a lot of content to process/crawl and this impacting your daily operations then you should check that continuous crawling is disabled and then schedule your crawling for off hours.
It sounds a bit like you may not have enough RAM to begin with. 12 GB seems like a fair amount but if you consider that the Microsoft recommendation is 24 GB for a single server farm that has all the services enabled then 12 GB may not be enough depending on what services you are running.
See this section here: Hardware Requirements
It is hard to manager memory on standalone development machine. Although, it is not recommended but you can "Stop SharePoint search host controller" service only on development machine temporarily to proceed with development. My best experience is to have MIN-24GB RAM on development machine.
Otherwise, you can do the following: Get-SPEnterpriseSearchService | Set-SPEnterpriseSearchService –PerformanceLevel "PartlyReduced" Here is Performance Level Explanation: • Reduced: Total number of threads = number of processors, Max Threads/host = number of processors • Partly Reduced: Total number of threads = 4 times the number of processors , Max Threads, host = 16 times the number of processors • Maximum: Total number of threads = 4 times the number of processors , Max Threads, host = 16 times the number of processors (threads are created at HIGH priority) Let setting take effects, run IISReset /noforce command or restart the Search Service in Central Admin