Confluence 2.8 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
このページでは、ページ リクエスト プロファイリングを有効にする方法を紹介します。プロファイリングがオンの場合、Confluence ページで実行される各操作の完了にかかる時間(ミリ秒)のレコードが表示されます。Confluence の応答が遅い場合、遅延の原因を特定するのに遅いページ リクエストの内部タイミング トレースが役立ちます。
Confluence サーバーにアクセスし、プロファイルを表示する必要があります。
In this page:
Page-request profiling in Confluence 2.8
For 2.8.* users: In order to get page-request profiling to work, you need to add the following to your confluence/WEB-INF/classes/log4j.properties file:
log4j.logger.com.atlassian.util.profiling.UtilTimerStack=DEBUG, confluencelog log4j.additivity.com.atlassian.util.profiling.UtilTimerStack=false
Please refer to this Knowledge Base item for more details.
ページリクエスト プロファイリングの有効化
There are two ways to turn on profiling for your Confluence instance:
- Append
?profile=onto the URL of any Confluence page. - Use the 'Logging and Profiling' option in the 'Administration Console'.
Both methods are described below.
Using a Page's URL to Enable/Disable Profiling
- Go to any page in your Confluence instance.
- Turn profiling on or off as follows:
- To turn profiling on: In your browser address bar, change the URL by appending
?profile=onto the end of the URL for static pages, or&profile=onif the URL is dynamic and already has parameters.
For example, if your Dashboard link is:then you must manually addhttp://localhost:8080/dashboard.action
?profile=onto the end of the URL:http://localhost:8080/dashboard.action?profile=on
- To turn profiling off: In your browser address bar, change the URL by appending
?profile=offto the end of the URL for static pages, or&profile=offif the URL is dynamic and already has parameters.
For example, if your Dashboard link is:then you must manually addhttp://localhost:8080/dashboard.action
?profile=offto the end of the URL:http://localhost:8080/dashboard.action?profile=off
- To turn profiling on: In your browser address bar, change the URL by appending
- Enter を押します。
Using the Administration Console to Enable/Disable Profiling
From Confluence 2.7, you can use the 'Logging and Profiling' option to enable or disable profiling.
You need to have System Administrator permissions in order to perform this function.
To enable page profiling,
- Go to the 'Administration Console' and click 'Logging and Profiling' in the 'Administration' section of the left-hand panel.
- The 'Logging and Profiling' screen appears. Click the 'Enable Profiling' button.
If profiling is already enabled, the button will be labelled 'Disable Profiling' instead.
To disable page profiling,
- Go to the 'Administration Console' and click 'Logging and Profiling' in the 'Administration' section of the left-hand panel.
- The 'Logging and Profiling' screen appears. Click the 'Disable Profiling' button.
If profiling is already disabled, the button will be labelled 'Enable Profiling' instead.
スクリーンショット: ログレベルの変更とプロファイル作成
アクティビティのプロファイリング
- Locate Confluence's standard screen output, or stdout, on the Confluence server.
If you are running Confluence as a Windows service, the log entries will be written to the
/logs/stdout.logfile under the Confluence install directory, while users running Confluence usingstartup.batunder Windows have stdout written to the command prompt window. - Enable profiling, using either of the methods described above.
Profiles for every page hit, for all users, will now be logged to your application server's default logs until Confluence is restarted. Note that each time a user visits a link, a single profile is printed. - Confirm that profiles are being printed to stdout.
- 異常に応答時間が遅いアクティビティを実行します。
- そのアクションについてのプロファイルをコピーします。コピーするプロファイルを決定したら、応答にかかる時間が長いリンクを探します。1つのページが遅い場合、そのプロファイルのみが必要です。Confluence が全体的または断続的に遅い場合、妥当なサンプルが集まるまで、遅くなっている間に記録されたすべてのプロファイルをコピーします。
- アトラシアンのテクニカル サポートからインスタンスをプロファイリングするように指示された場合は、関連するすべてのプロファイルをサポート チケットに添付してください。
- Turn profiling off again, using either of the methods described above.
- Confirm that profiles are no longer being printed to stdout.
プロファイルの例
以下は Confluence の概要と呼ばれるページにアクセスするための通常のプロファイルの最初の数行です。
[344ms] - /display/ds/Confluence+Overview
[313ms] - SiteMesh: parsePage: http://localhost:8080/display/ds/Confluence+Overview
[313ms] - XW Interceptor: Before defaultStack: /pages/viewpage.action (ViewPageAction.execute())
[0ms] - SpaceAwareInterceptor.intercept()
[16ms] - PageAwareInterceptor.intercept()
[0ms] - AOP: PageManager.getPage()
[16ms] - AOP: PermissionManager.hasPermission()
[0ms] - AOP: SpacePermissionManager.hasPermission()
[16ms] - AOP: SpacePermissionManager.hasPermission()
[0ms] - AOP: SpacePermissionManager.hasPermission()
[0ms] - AOP: SpacePermissionManager.hasPermission()
[281ms] - XW Interceptor: After defaultStack: /pages/viewpage.action (ViewPageAction.execute())
[281ms] - XW Interceptor: After validatingStack: /pages/viewpage.action (ViewPageAction.execute())
...

