If you are having performance issues with Confluence, and the advice on Performance Tuning has not helped, you can always ask us for help. Performance issues can be hard to diagnose, however, and we often spend a lot of time going back and forth looking for more information about what may be causing Confluence to be slow for you. The best way to get a speedy resolution to your issue is to provide this information up front.

問題を解決するためのいいアイディアが思いついたとしても、以下に記載されている情報をすべて収集し、サポートのリクエストに含めてください。そうすることで、あとから追加で情報の提供を依頼する必要がなくなります。

システム情報

Confluence Server

  • Confluence の Administration → System Information のスクリーンショットを取得 (またはページを HTML として保存) します。
  • Confluence の Administration → Cache Statistics のスクリーンショットを取得 (またはページを HTML として保存) します。
  • Confluence が起動している正確なハードウェアを検索します。
    • CPU数、メーカーとモデル、クロック数(Hz数)。
    • マシンに搭載されているメモリの量。
    • Confluence JVM に割り当てられているメモリ量(JVM 設定の -Xmx および -Xms の値)。
    • 同じボックスにホストされている他のアプリケーション。

Confluence コンテンツ

  • Confluence のユーザーの登録数。
  • How many spaces are there in your Confluence server?
  • おおよそのページ数はいくつですか? (データベースに接続し、'select count(*) from content where prevver is null and contenttype = 'PAGE'' を実行します)
  • Bandana (プラグインの通常のデータの保存先) 内にはいくつのデータが保存されていますか? (データベースに接続し、'select count(*), sum(length(bandanavalue)) from bandana' を実行します)

The Database

  • Confluence のデータベース サーバーの正確なバージョン番号。
  • データベースへのアクセスに使用している JDBC ドライバの正確なバージョン番号(一部のデータベースについては、ドライバの JAR ファイルの完全なファイル名で十分です)。
  • データベースが Confluence と同じサーバー上にホストされているかどうか。
  • 異なるサーバーにある場合、Confluence とデータベース間のネットワーク レイテンシーの値。
  • データベース接続の詳細。コネクション プールの大きさ。標準的な設定を使用している場合、この情報は confluence_cfg.xml ファイル内に記載されています。このファイルを収集してください。データソースを使用している場合、この情報はアプリケーション サーバーの設定ファイル内に保存されているため、このファイルを収集します。

ユーザー管理

  • 外部ユーザー管理または認証を使用しているかどうか(JIRA または LDAP ユーザー委任、またはシングル サインオンなど)。
  • 外部の JIRA ユーザー管理を使用している場合、Confluence と JIRA のデータベース サーバー間のレイテンシーの値。
  • LDAP ユーザー管理を使用している場合:
    • 使用している LDAP サーバーのバージョン。
    • Confluence と LDAP サーバーの間のレイテンシー。

診断

Observed Problems

  • 読み込みが遅いページ。
    • 特定の wiki ページが遅い場合、そのページの wiki のソースコードを添付します。
  • 常に読み込みが遅いか、または断続的に遅いかどうか。

データの監視

個々の問題を掘り下げる前に、データを監視すると、パフォーマンスの問題の性質を理解するのにかなり役立ちます。負荷が急に増加したか、または徐々に負荷が大きくなったか、または負荷が特定の状況でのみ致命的な閾値を超えるような特定のパターン(毎日、毎週、毎月)に従っていそうかどうかによって対処します。これは、大まかな概要を取得するのに利用できる連続的なデータの監視を行うのに役立ちます。

Here are sample graphs from the confluence.atlassian.com system, showing

Load
This graph shows the load for two consecutive days. The obvious pattern is that the machine is under decent load, which corresponds to the user activity, and there is no major problem.

Resin Threads and Database Connections


アクティブな Java スレッドの数

この2つのグラフは、アプリケーション サーバーのアクティブなスレッド(1つ目のグラフ)と、データベース コネクション プールのサイズ(2つ目のグラフ)を示しています。見ての通り、サーバー スレッドの急激なスパイクと、それに対応する db コネクションのスパイクがあります。


データベース コネクション プールのサイズ

データベース コネクション プールのサイズのピークは112を超え、データベースが設定されるコネクションの最大数(100)を超えます。多くのリクエストが重要なデータベースのコネクションを取得できない可能性があるため、Confluence へのリクエストがいくつか失敗し、これを使用する多くのユーザーがクラッシュすることに驚きはありません。

これらのグラフを見ると、非常に簡単に設定の問題を特定することができます。多くのデータベース コネクションが有効であったため、次のスパイクは重要ではありません。

つまり、これは継続的に Confluence システムを監視するのに役立ち(我々は Hyperic などを使用しています)、問題が発生した際にグラフを送信するとさらに役立ちます。

アクセス ログ

  • Enable user access logging, including redirecting the logs to a separate file
    • You can run this file through a log file analyser such as AWStats, or manually look through for pages which are slow to load.

Profiling and Logs

  • Enable Confluence's built-in profiling for long enough to demonstrate the performance problem using Troubleshooting Slow Performance Using Page Request Profiling.
    • 単一のページが確実に遅い場合、そのページに対するいくつかのリクエストを作成する必要があります。
    • パフォーマンスの問題が断続的な場合、または全体的に遅い場合、時間のプロファイリングの良いサンプルとするために、30分から1時間、有効なプロファイリングを残しておきます。
  • (上記のプロファイリング データを含む) Confluence の標準出力ログを見つけます。ログ ディレクトリ全体を zip 化します。
  • Take a thread dump during times of poor performance

CPU Load

  • If you are experiencing high CPU load, please install the YourKit profile and attach two profiler dumps taken during a CPU spike. If the CPU spikes are long enough, please take the profiles 30-60 seconds apart.

Instance Metrics and Scripts

  • It is essential to understand the user access and usage of your instance. Please use the access log scripts and sql scripts to generate Usage statistics for your instance.

次のステップ

Open a ticket on https://support.atlassian.com/ja and attach all the data you have collected. This should give us the information we need to track down the source of your performance problems and suggest a solution. Please follow the progress of your enquiry on the support ticket you have created.

If your site is non-responsive, please use our Live Support during business hours once you have created the ticket to escalate your problem.