Confluence 5.6 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
このページでは、ページ リクエスト プロファイリングを有効にする方法を紹介します。プロファイリングがオンの場合、Confluence ページで実行される各操作の完了にかかる時間(ミリ秒)のレコードが表示されます。Confluence の応答が遅い場合、遅延の原因を特定するのに遅いページ リクエストの内部タイミング トレースが役立ちます。
Confluence サーバーにアクセスし、プロファイルを表示する必要があります。
To see just the slow performing macros, see Identifying Slow Performing Macros.
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.
ページ プロファイリングを有効化する方法:
ページ プロファイリングを無効化する方法:
The information on this page does not apply to Confluence Cloud.
スクリーンショット: ログレベルの変更とプロファイル作成
以下は 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())
...
インデントされた各行は、親の行にロール アップする再帰呼び出しであることに注意してください。この例では、Confluence の概要ページに 344ms かかっています。その一部の 313ms は sitemesh にかかっています。
起動時に Confluence プロファイリングを有効にするための解決策がいくつかあります。頻繁に再起動したり、サポート/トラブルシューティング目的の場合にプロファイリングを有効にするのを忘れたりした場合に、これが役に立つ場合があります。
Edit the file CONFLUENCE_HOME\confluence\WEB-INF\web.xml. You should see a stanza similar to the one below. Set the parameter value for autostart to true:
<filter>
<filter-name>profiling</filter-name>
<filter-class>com.atlassian.core.filters.ProfilingAndErrorFilter</filter-class>
<init-param>
<!-- specify the which HTTP parameter to use to turn the filter on or off -->
<!-- if not specified - defaults to "profile.filter" -->
<param-name>activate.param</param-name>
<param-value>profile</param-value>
</init-param>
<init-param>
<!-- specify the whether to start the filter automatically -->
<!-- if not specified - defaults to "true" -->
<param-name>autostart</param-name>
<param-value>true</param-value>
</init-param>
</filter>
これを false に戻すことを忘れると、ログが非常に大きくなります。