設定投影片廣播效能 (Office Web Apps)

 

適用版本: PowerPoint Web App Preview

上次修改主題的時間: 2016-11-29

本文所提供之有關如何設定 Microsoft PowerPoint 2010 投影片廣播效能的資訊,主要提供 IT 專業人員維護組織中獨立伺服器或伺服器陣列內部部署上已安裝於 Microsoft SharePoint 2010 產品 的 Microsoft Office Web Apps 之用。除非特別說明,否則本文中的 SharePoint 2010 產品 指的是 Microsoft SharePoint Server 2010 與 Microsoft SharePoint Foundation 2010。

重要

本文所提供的效能與容量指導較為初級,日後有可能會變更。因此您的結果可能會不同。

使用 Microsoft PowerPoint 投影片廣播時,投影片廣播與會者的瀏覽器會每秒輪詢投影片廣播伺服器一次,以檢查投影片簡報有無更新。若與會者人數眾多,則可能會導致 Web 前端伺服器的負荷過重,最糟的情況會中斷伺服器陣列上的其他服務。根據預設,投影片廣播在理想的情況下可廣播 50 位以下的與會者;但是您無法防止其他與會者加入簡報。為了避免投影片廣播簡報有太多位與會者,管理員可以使用本文所述的一或多種方法,最佳化投影片廣播效能。

本文內容:

  • 部署專用的 SharePoint Server 伺服器陣列

  • 設定廣播容量

  • 設定輪詢間隔

  • 修改節流以限制 Web 前端資源使用量

  • 變更廣播的長度上限

  • 設定閒置廣播的時限

部署專用的 SharePoint Server 伺服器陣列

使用 PowerPoint 投影片廣播的組織若固定有眾多與會者,管理員可以部署 PowerPoint 投影片廣播專用的 SharePoint Server 伺服器陣列。如需如何規劃及部署專用伺服器陣列的詳細資訊,請參閱<規劃 Office Web Apps (安裝於 SharePoint 2010 產品)>及<部署 Office Web Apps (安裝於 SharePoint 2010 產品)>。

設定廣播容量

若要加快 PowerPoint Service 處理廣播要求的速度,管理員可以針對 BroadcastStateService 服務的端點元素,新增 behaviorConfiguration="MaxPendingRecieves" 設定,並將 MaxPendingReceives 行為新增至中介層伺服器上 Web.config 檔案的 endpointBehaviors 元素。

重要

新增此設定會增加可以參與廣播的與會者人數,但同時也會增加中介層伺服器所使用的資源。只有專用廣播伺服器陣列,或預期會有顯著廣播使用量的伺服器陣列,才建議使用此設定。

新增此設定可能需要修改每部伺服器陣列之伺服器上的多個 Web.config 檔案。如需如何使用 Web.config 檔案的詳細資訊,請參閱位於 https://msdn.microsoft.com/zh-tw/library/ms460914(office.14).aspx使用 Web.config 檔案(可能為英文網頁)

若要增加廣播容量,請使用 [記事本] 編輯 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\PowerPoint\Web.config 中的 Web.config 檔案

下列範例透過新增 behaviorConfiguration="MaxPendingRecieves" 設定,並將 MaxPendingReceives 行為新增至 Web.config 檔案的 endpointBehaviors 元素,增加廣播服務容量:

<service name="Microsoft.Office.Server.Powerpoint.Pipe.Core.BroadcastStateService"
behaviorConfiguration="RenderingServiceBehavior">
<endpoint name="BinaryHttpRenderingService" address="fast" 
   binding="customBinding" bindingConfiguration="FastClaimsBinding"
   contract="Microsoft.Office.Server.Powerpoint.Interface.Shared.IBroadcastStateService"
behaviorConfiguration="MaxPendingReceives"/>
<endpoint name="BinaryHttpRenderingService" address="secure"
   binding="customBinding" bindingConfiguration="SecureClaimsBinding"
   contract="Microsoft.Office.Server.Powerpoint.Interface.Shared.IBroadcastStateService"
behaviorConfiguration="MaxPendingReceives"/>
</service>
<endpointBehaviors>
  <behavior name="MaxPendingReceives">
    <dispatcherSynchronization maxPendingReceives="10" />
  </behavior>
</endpointBehaviors>

建議值

若要增加容量,maxPendingRecieves 設定的指定值建議為 10。根據預設,當 MaxPendingRecieves 行為不存在時,有效值為 1。

行為 設定

MaxPendingReceives

maxPendingReceives

10

警告

當您安裝 SharePoint 2010 產品 的更新或 Service Pack,或是將安裝升級為產品的下一版時,對 Web.config 所做的變更可能會遭到覆寫。

設定輪詢間隔

使用 PowerPoint 投影片廣播的組織若固定有眾多與會者,但無法部署 PowerPoint 投影片廣播專用的 SharePoint Server 伺服器陣列,則管理員可以變更輪詢間隔值,該值決定與會者輪詢投影片廣播伺服器以檢查簡報有無更新的頻率。增加輪詢間隔值會降低輪詢流量,但同時也會增加與會者看到簡報變更前經過的時間。輪詢間隔可透過 Windows PowerShell 指定,並以毫秒 (1000 毫秒 = 1 秒) 為單位。

使用 Windows PowerShell 設定輪詢間隔

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 在 Windows PowerShell 命令提示字元 (PS C:\>) 處,輸入下列命令並按 ENTER:

    Get-SPPowerPointServiceApplicationProxy | Set-SPPowerPointServiceApplicationProxy -BroadcastBrowserHealthyStatePollIntervalInMilliSeconds 2000

如需詳細資訊,請參閱<Get-SPPowerPointServiceApplicationProxy>與<Set-SPPowerPointServiceApplicationProxy>。

修改節流以限制 Web 前端資源使用量

管理員可以針對 PowerPoint 檢視 Web.config 檔案的 ViewServiceTypeBehaviors 與 ViewServiceTypeBehaviorsHttps 行為,修改 serviceThrottling 元素的 maxConcurrentCalls 設定。此設定會限制 PowerPoint Web App 及 PowerPoint 投影片廣播用於檢視的 Web 前端資源。修改此設定需要修改每部前端伺服器陣列之伺服器上的 Web.config 檔案。如需如何使用 Web.config 檔案的詳細資訊,請參閱位於 https://msdn.microsoft.com/zh-tw/library/ms460914(office.14).aspx使用 Web.config 檔案(可能為英文網頁)

若要修改節流以限制 Web 前端使用量,請使用 [記事本] 編輯 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\ppt\Web.config 中 IIS 的 Web.config 檔案

下列範例針對具有四個 CPU 的伺服器上的每種行為,指定四種 serviceThrottling maxConcurrentCalls:

<behavior name="ViewServiceTypeBehaviors" >
  <serviceMetadata httpGetEnabled="true" />
  <serviceThrottling maxConcurrentCalls="16" />
  <AttemptAuthFallback />
</behavior>
  <behavior name="ViewServiceTypeBehaviorsHttps" >
  <serviceMetadata httpGetEnabled="false" />
  <serviceThrottling maxConcurrentCalls="16" />
  <AttemptAuthFallback />
</behavior>

建議值

指定的值應取決於伺服器上的 CPU 數目。

行為 設定

ViewServiceTypeBehaviors

serviceThrottling maxConcurrentCalls

2-5

ViewServiceTypeBehaviorsHttps

serviceThrottling maxConcurrentCalls

2-5

警告

當您安裝 SharePoint 2010 產品 的更新或 Service Pack,或是將安裝升級為產品的下一版時,對 Web.config 所做的變更可能會遭到覆寫。

變更廣播期間上限

根據預設,廣播會在 12 小時後過期。如此可支援漫長的會議,並有利於在開始會議前幾小時建立廣播及傳送邀請的簡報者。但是,廣播期間過長可能會持續對伺服器造成負荷,特別是在簡報者忘記在會議後結束廣播,或與會者在會議後持續開啟瀏覽器的情況下。廣播期間上限 (秒) 可透過 Windows PowerShell 指定。

使用 Windows PowerShell 變更廣播期間上限

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 在 Windows PowerShell 命令提示字元 (PS C:\>) 處,輸入下列命令並按 ENTER:

    Get-SPPowerPointServiceApplicationProxy | Set-SPPowerPointServiceApplicationProxy -BroadcastSessionTimeoutInSeconds 21600.

  6. 在 Windows PowerShell 命令提示字元 (PS C:\>) 處,輸入下列命令並按 ENTER:

    Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -BroadcastStateIdleTimeoutInSeconds 21600.

如需詳細資訊,請參閱<Get-SPPowerPointServiceApplicationProxy>與<Set-SPPowerPointServiceApplicationProxy>。

設定閒置廣播的時間限制

另外還有其他設定可以在閒置一段指定的時間之後,強制 PowerPoint 結束廣播。此設定的預設值為 0,表示沒有閒置時限。當您變更此設定時請特別小心,因為如果簡報者在會議前幾小時建立廣播,或會議期間稍事休息,都有可能讓有效的廣播成為閒置。廣播閒置逾時 (秒) 可透過 Windows PowerShell 指定。

使用 Windows PowerShell 設定閒置廣播的時限

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 在 Windows PowerShell 命令提示字元 (PS C:\>) 處,輸入下列命令並按 ENTER:

    Get-SPPowerPointServiceApplicationProxy | Set-SPPowerPointServiceApplicationProxy -BroadcastPresenterIdleTimeoutInSeconds 14400

如需詳細資訊,請參閱<Get-SPPowerPointServiceApplicationProxy>與<Set-SPPowerPointServiceApplicationProxy>。