監控 SharePoint Server 的 SharePoint 相關應用程式Monitor apps for SharePoint for SharePoint Server

摘要: 了解管理員和網站擁有人如何在 SharePoint Server 2013 和 SharePoint Server 2016 中監視 SharePoint 相關應用程式的健康情況和使用狀況詳細資料。Summary: Learn how administrators and site owners can monitor the health and usage details for apps for SharePoint in SharePoint Server 2013 and SharePoint Server 2016.

您可以使用 SharePoint 管理中心網站 來監視SharePoint 應用程式,並檢查詳細資料和錯誤。在您開始之前,請確定您已經將您的環境設定為適用於 SharePoint 相關應用程式,且已經建立應用程式目錄You can use the SharePoint Central Administration website to monitor apps for SharePoint and check details and errors. Be sure you've configured your environment for apps for SharePoint and created an app catalog before you get started.

您必須是伺服器陣列管理員群組或網站擁有人群組的成員,才能執行本文中的步驟。You must be a member of the Farm Administrators group or the site Owners group to perform the steps in this article.

重要

[監視應用程式]**** 頁面需要下列的搜尋分析和流量檔案匯入計時器工作為作用中:> ECM 分析計時器工作名稱:Search Service 的流量分析計時器工作 > 流量資料庫計時器工作:Microsoft SharePoint Foundation 流量資料匯入 > 這些項目會在您於環境中設定「搜尋」時自動啟動。The Monitor Apps page requires the following search analytics and usage file import timer jobs to be active: > ECM analytics timer job name: Usage Analytics timer job for Search Service > Usage DB timer job name: Microsoft SharePoint Foundation Usage Data Import > These are automatically activated when you configure Search in your environment.

從管理中心選取要監視的應用程式Selecting apps to monitor in Central Administration

[受監視的應用程式] 頁面中顯示已設定監視的 SharePoint 應用程式。此頁面所列出的每個 SharePoint 相關應用程式都包含可協助管理員監視效能的詳細資料。每個 SharePoint 相關應用程式提供下列屬性:名稱、狀態、來源、使用中的授權數目、所購買的授權數目、安裝位置及執行階段錯誤。The Monitored Apps page displays the apps for SharePoint that have been configured for monitoring. Each app for SharePoint that is listed on this page includes details to help an administrator monitor performance. Each app for SharePoint provides the following properties: Name, Status, Source, Licenses in Use, Licenses Purchased, Install Locations, and Runtime Errors.

若要新增應用程式至監視應用程式清單To add an app to the monitor apps list

  1. 在管理中心中,按一下 [一般應用程式設定]*In Central Administration, click *General Application Settings.

  2. 在 [一般應用程式設定] 頁面上,按一下 [應用程式]**** 區段中的 [監視應用程式]*On the General Application Settings page, in the *Apps section, click Monitor Apps.

  3. 在 [受監視的應用程式] 頁面上,按一下功能區之 [動作]**** 群組中的 [新增應用程式]*On the Monitored Apps page, in the *Action group of the ribbon, click Add App.

  4. 選取您要監視之應用程式的核取方塊,或在 [搜尋應用程式名稱]**** 方塊中輸入名稱,然後按一下 [搜尋] 圖示。Select the checkbox for the app that you want to monitor, or type a name in the Search for app name box, and then click the Search icon.

  5. 在搜尋結果頁面上,選取您要監視的應用程式。On the search results page, select the app that you want to monitor.

  6. 按一下 [新增應用程式]*Click *Add App.

    應用程式現在會顯示在 [受監視的應用程式] 清單中。The app now appears in the list of monitored apps.

    從監視應用程式清單中移除應用程式To remove an app from the monitor apps list

  7. 在 [受監視的應用程式] 頁面上,選取您要移除之應用程式旁的核取方塊。On the Monitored Apps page, select the checkbox next to the app that you want to remove.

  8. 在功能區的 [管理]**** 群組中,按一下 [移除應用程式]*In the *Manage group of the ribbon, click Remove App.

在管理中心監視應用程式詳細資料Monitoring app details in Central Administration

本節說明如何監視及了解 SharePoint 應用程式詳細資料。您可以透過多種方式來檢視 SharePoint 應用程式的錯誤和使用狀況詳細資料。您可以選取 [受監視的應用程式] 頁面中的應用程式,然後使用功能區存取該應用程式的錯誤或使用狀況詳細資料;也可以在 [受監視的應用程式] 頁面上,按一下清單中的應用程式開啟應用程式詳細資料頁面,以存取相同的錯誤或使用狀況詳細資料。This section explains how you can monitor and understand the apps for SharePoint details. There are multiple ways that you can view the error and usage details for apps for SharePoint. By selecting an app in the Monitored Apps page, you can use the ribbon to access the error or usage details for that app. You can also click an app in the list on the Monitored Apps page to open the app details page and access the same error or usage details.

應用程式使用與應用程式錯誤的詳細資料 (位於應用程式監視頁面中) 最多可能會延遲 29 個小時。應用程式詳細資料會根據排程 ECM 分析計時器工作來執行的時間而定。當該計時器工作執行時,它會收集前一天的事件。例如,若計時器工作是排程於早上 5 點執行,則所收集的最近事件是來自前一天的晚上 11:59。在早上 12:01 發生的事件將在 29 個小時之後才會出現在應用程式詳細資料頁面中。The app usage and app error details data that is on the app monitoring pages can be delayed for up to 29 hours. The app details depend on when the ECM analytics timer job is scheduled to run. When the timer job runs, it collects events for the previous day. For example, if the timer job is scheduled to run at 5 A.M., then the most recent events that are collected are from 11:59 P.M. the previous day. An event that occurs at 12:01 A.M. will not appear in the app details pages until up to 29 hours later.

請注意,如果您針對應用程式的特定執行個體檢視應用程式錯誤詳細資料頁面,則應用程式的錯誤數已與清單中的錯誤訊息進行同步處理。發生此情況是因為錯誤數是出現在應用程式錯誤詳細資料頁面中,而不是 ECM 分析計時器工作所處理的事件上。Note that if you view the app error details page for a specific instance of an app, the number of errors for the app is synchronized with the error messages in the list. This occurs because the number of errors appears in the app error details page instead of the events that are processed by the ECM analytics timer job.

注意

請注意,在 [受監視的應用程式] 頁面中,錯誤對話方塊顯示的錯誤數可能會比所計數的數目還多。錯誤數是每 24 小時計算一次,但錯誤訊息的處理頻率更高。因此,錯誤對話方塊會顯示當天產生的錯誤訊息,但計數要到當天結束時才會更新。Be aware that in the Monitored Apps page, the error dialog box can show more errors than are counted. The errors are counted every 24 hours, but the error messages are processed more often. As a result, the error dialog box can show error messages that are generated in the current day before the count is updated at the end of the day.

若要在受監視的應用程式中檢視應用程式使用狀況詳細資料To view the app usage details in Monitored Apps

  1. 在 [受監視的應用程式] 頁面上,按一下您要檢視的應用程式。On the Monitored Apps page, click the app that you want to view.

    即會開啟新頁面,並顯示應用程式的詳細資訊,例如:授權、錯誤、安裝及使用狀況。A new page opens and displays detailed information about the app, such as the following: licensing, errors, installations, and usage.

    注意

    您也可以在 [受監視的應用程式] 清單中選取應用程式,然後在功能區的 [應用程式詳細資料]**** 群組中,按一下 [檢視詳細資料]*You can also select an app in the monitored apps list and in the *App Details group of the ribbon, click View Details.

  2. 在 [使用狀況]**** 區段中,按一下 [日]*、[月]* 或 [年]**** 將圖表變更為這些時間範圍。In the Usage section, click Days, Months, or Years to change the chart to those time frames.

    在受監視的應用程式中檢視應用程式錯誤詳細資料To view the app error details in Monitored Apps

  3. 在 [受監視的應用程式] 頁面上,按一下您要檢視之應用程式的 [執行階段錯誤] 欄。On the Monitored Apps page, click the number in the Runtime Errors column for the app you want to view.

    注意

    您也可以在 [受監視的應用程式] 清單中選取應用程式,然後在功能區的 [應用程式詳細資料] 群組中,按一下 [檢視錯誤]*You can also select an app in the monitored apps list and in the App Details group of the ribbon, click *View Errors.

  4. [應用程式監視詳細資料] 對話方塊會隨即顯示,並包含該應用程式之每個錯誤的相關資訊。您可以使用相互關聯識別碼來尋找錯誤記錄檔中的錯誤。The App Monitoring Details dialog appears with information about each error for that app. You can use the Correlation ID to find the errors in the error log.

  5. 按一下 [位置] 欄中的 URL,以檢視此應用程式的更多錯誤詳細資料。Click the URL in the Location column to view more error details for this app.

  6. 在 [應用程式監視詳細資料] 頁面上,按一下 [執行階段錯誤]**** 旁的數字。On the App Monitoring Details page, click the number next to Runtime Errors.

  7. [應用程式監視詳細資料] 對話方塊會隨即顯示,並包含此應用程式的所有執行階段錯誤、發生每個錯誤的時間及相互關聯識別碼清單。The App Monitoring Details dialog appears and includes a list of all Runtime Errors for this app, the time each error occurred, and the Correlation ID.

監視 SharePoint 網站中的應用程式詳細資料Monitoring app details in a SharePoint site

本節說明網站擁有人如何監視及了解 SharePoint 應用程式的使用狀況。網站擁有人可以選取 [網站內容] 頁面中的應用程式,然後按一下應用程式對話方塊中的 [監視],來檢視 SharePoint 應用程式的錯誤和使用狀況詳細資料。This section explains how site owners can monitor and understand the usage of apps for SharePoint. A site owner can view the error and usage details for apps for SharePoint by selecting an app in the Site Contents page and then clicking Monitor in the app dialog box.

注意

請注意,在應用程式詳細資料頁面中,錯誤對話方塊顯示的錯誤數會比所計數的數目還多。錯誤數是每 24 小時計算一次,但錯誤訊息的處理頻率更高。因此,錯誤對話方塊會顯示當天產生的錯誤訊息,但計數要到當天結束時才會更新。Be aware that in the app details page, the error dialog box can show more errors than are counted. The errors are counted every 24 hours, but the error messages are processed more often. As a result, the error dialog box can show error messages that are generated in the current day before the count is updated at the end of the day.

若要檢視 SharePoint 網站中的應用程式使用狀況詳細資料To view the app usage details in a SharePoint site

  1. 在 [網站內容] 頁面上,按一下要監視之應用程式旁的圖示,然後按一下圖說文字中的 [詳細資料]*On the Site Contents page, click the icon next to the app you want to monitor and then click *Details in the callout.

    所選應用程式的 [應用程式詳細資料] 頁面會隨即顯示,且網站擁有人可以檢視授權、錯誤安裝及使用狀況的詳細資料。The App Details page appears for the selected app and the site owner can see the details for licenses, errors Installs and usage.

  2. 在 [錯誤]**** 區段中,按一下 [安裝錯誤]、[執行階段錯誤] 或 [升級錯誤] 旁的數字,以檢視錯誤詳細資料。In the Errors section, click the number next to Install Errors, Runtime Errors, or Upgrade Errors to see the error details.

    此應用程式錯誤清單可協助您判斷是否由於太多錯誤而必須移除應用程式,或判斷應用程式是否如預期般運作。This app error list can help you determine if you want to remove the app because there are too many errors or if the app is working as it should.

    注意

    出現在此清單中的應用程式錯誤是在 4 天前發生。The app errors that appear in this list have occurred within the previous four days.

  3. 在 [使用狀況]**** 區段中,按一下 [日]*、[月]* 或 [年]**** 將圖表變更為這些時間範圍。In the Usage section, click Days, Months, or Years to change the chart to those time frames.

    圖表會針對每個時間範圍顯示兩列,分別代表已啟動應用程式的次數,以及每天使用此應用程式之特定使用者的人數。The chart displays two bars for each time period that represents the number of times the app has been launched and the number of specific users that use this app each day.

    注意

    如果應用程式使用透過 Business Connectivity Services 的外部資料來源連線,也會顯示圖表,指出對外部資料來源進行的呼叫數目。If the app uses connections to external data sources through Business Connectivity Services, a graph that shows the number of calls made to the external data sources is also shown. Dates that appear in the Usage and BCS Calls graphs are in Coordinated Universal Time (UTC).

另請參閱See also

概念Concepts

規劃 SharePoint Server 的應用程式Plan for apps for SharePoint Server