设为首页 收藏本站
查看: 580|回复: 0

[经验分享] SharePoint 2013 对开发环境的服务器配置进行优化

[复制链接]

尚未签到

发表于 2019-2-5 08:30:06 | 显示全部楼层 |阅读模式
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.
  
  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  -cacheport 22233 -cachesize
  $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、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-672006-1-1.html 上篇帖子: Office 365管理员指引 14——Sharepoint 日历 下篇帖子: SharePoint企业门户助壳牌统一流程优化
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表