SharePoint 2013 对开发环境的服务器配置进行优化

 文章正文都是英语,懒得看细节的同学直接找用颜色标粗的地方,照着做就行。
 

Optimizing Server Configuration for Development Farm

Setting up development environments for SharePoint Server has always been very difficult and costly because of the hardware requirements specifications needed. Development environments mostly use a single server with built-in database. The hardware requirements for SharePoint Server 2013 Preview as suggested by Microsoft (Source: Technet)
Processor - 64 bit, 4 cores and RAM - 24GB

Getting development machines with 24 GB memory may not possible in most of the organizations. For a development environment, we might not need all the functionalities and features of SharePoint to work. Two features/services in SharePoint 2013 which consume lot of memory are 'Search Service' and 'Distributed Cache Service'. These services might not be needed in most of the development scenarios. Below are the details and uses about these services. Once we understand what these services do and are used for, we can either configure them to use less memory or stop them.

Search Service

The architecture of search has undergone lot of changes in SharePoint 2013. Many of the core components are replaced by the FAST Search components. Below are a few new components which are added in the new architecture

  • Crawl Component
  • Content Processing Component
  • Query Processing Component
  • Index Component
  • Analytic Processing Component

All these components run as a process called 'noderunner.exe'. On a default single server installation of SharePoint there will five instances of noderunner.exe (one for each of the component listed above). There is another process called 'Host Controller', which monitors the noderunner processes. If any of the noderunner.exe fails, the host runner will restart that process.

REDUCE THE PERFORMANCE LEVEL

Search has become the most integral part in SharePoint 2013 now. It’s tied up with many other components. For example, the web analytics service is not a new Service Application anymore, it's integrated with search and all the reports are generated using the Search Services. So, it's not a good idea to stop this service. But we can limit the memory usage or reduce the performance level for Search Service.

By default the performance level for a Search Service is set to Maximum. Using the below powershell cmdlet we can reduce the performance level to Reduced

Set-SPEnterpriseSearchService -PerformanceLevel Reduced

LIMIT THE MEMORY USAGE FOR NODERUNNER.EXE

These processes consume lot of memory on the server. We can configure the maximum amount of memory this process can use. Edit the noderunner.exe's config file which is available at this location – 'C:\Program Files\Microsoft Office Servers\15.0\Search\Runtime\1.0\noderunner.exe.config'. Search for the 'nodeRunnerSettings' element and assign the maximum amount of memory (in MB) that can be used by the process. By default this is 0, which means unlimited.

<nodeRunnerSettings memoryLimitMegabytes="50" />

Save the config file and restart all the noderunner.exe processes.

Distributed Cache Service

A new caching service is added in SharePoint 2013 called 'Distributed Cache Service' which is built based on Windows Server AppFabric Distributed Cache. Many features rely on this service to store data for fast retrieval when needed. This is used by services/features like Authentication Token Cache, Micro Blogging features, My Site Social Feeds etc.,

HOW TO STOP THIS SERVICE

This service can be managed from the 'Services on Server' page in the central admin. It can be started/stopped from here.

ALLOCATE LESS MEMORY

By default when SharePoint 2013 preview is installed, Distributed Cache Service's memory allocation is set to 10 percent of the total physical memory allocation. Using the below powershell cmdlets we can change the memory allocation for this service.

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Unprovision()
Set-CacheHostConfig -Hostname <HostName> -cacheport 22233 -cachesize <Size in MB>
$serviceInstance.Provision()

The above cmdlets stops the Caching Service, and sets the memory allocation to the specified number of megabytes (MB), and then starts the Caching service.

Do not create new Web Applications

By default, there will be one web application created on 80 port of the server. A site collection will also be created, but we have to choose the template for the site collection to get provisioned. Never create multiple web applications, as they might create multiple Application Pools which will consume memory. It’s good to use a single web application or use the same application pool as far as possible. This keeps only one w3wp.exe running and uses less memory when compared to two worker processes.

In my development environment, I have set the memory limit for Distributed Cache Service to 300 MB, changed the search performance level to Reduced, and set the memory limit for noderunner.exe to 50MB. With these changes I am able to work on my server with 6GB memory. Most of the functionalities are working fine.

Note: All the configurations and practices which I mentioned above are for farms which will be used by developers. These should NOT be used for Integration/Testing/Staging/Production environments.

 

原文地址:http://www.spdeveloper.co.in/sharepoint2013/optimizing-the-configuration-of-development-farm.aspx

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值