JMX インターフェイス (Confluence 2.8 で導入) を使用すると、Confluence インスタンスのステータスをリアルタイムで監視できます。これにより、ご使用のインスタンスのリソース使用率やデータベース待ち時間など有益なデータを得られ、問題やパフォーマンス問題を診断することができます。JMX データを読み取るには、JMX クライアントを使用する必要があります。
If you experience any problems during Confluence startup that are related to JMX, it is possible to disable the JMX registration process. Please place jmxContext.xml in your <confluence-install>/confluence/WEB-INF/classes folder to do so. |
JMX (Java Management eXtensions) is a technology for monitoring and managing Java applications. JMX uses objects called MBeans (Managed Beans) to expose data and resources from your application.
By default, Confluence uses the Apache Tomcat web server. To use JMX, you must enable it on your Tomcat server, by carrying out the steps under the Apache Tomcat documentation, entitled Enabling JMX Remote. With those steps completed, restart your Tomcat server.
For the stand-alone, add the startup parameter -Dcom.sun.management.jmxremote to setenv.sh or setenv.bat. See instructions for the Windows Service - enter it in the same place as PermGen Memory.
You need to use a JMX client in order to view the JMX output from Confluence. JConsole is a readily available JMX client that is included with Sun's Java Developer Kit (version 5 onwards). The full name is the 'Java Monitoring and Management Console', but we will refer to it as JConsole for the purposes of this document.
You must add the location of the JConsole binary file to your 'path' environment variable. As JConsole resides in the 'bin' (binaries) folder under your Java directory, the path should resemble something like this:
JDK_HOME/bin/ |
この例では、 'JDK_HOME' をご使用の Java ディレクトリへの完全システムパスに置き換えます。
To configure JConsole,
|
注意: JConsole 以外の他の JMX クライアントは、Confluence から JMX 情報を読み取ることができます。
JMX インターフェイスを使用することで、Confluence インスタンスの現時点の内部情報を以下の MBean を介して表示することができます。
この MBean は検索インデックス作成に関連する情報を表示します。
プロパティ名 |
機能 |
値 |
|---|---|---|
Flushing |
キャッシュの状態 (フラッシュの有無) を表示。 |
True/False |
LastElapsedMilliseconds |
最後のインデックス作成の所要時間。 |
ミリ秒 |
LastElapsedReindexing |
最後の再インデックス作成の所要時間。 |
ミリ秒 |
TaskQueueLength |
キューにあるタスクの数を表示。 |
整数 |
This MBean shows information related to database latency. It also contains most of the information presented on the System Information page.
プロパティ名 |
機能 |
値 |
|---|---|---|
DatabaseExampleLatency |
データベース対して実行されたクエリ例の待ち時間を表示。 |
ミリ秒 |
この MBean はシステム負荷と表示されたエラーページに関連する情報を表示します。
プロパティ名 |
機能 |
値 |
|---|---|---|
AverageExecutionTimeForLastTenRequests |
最新 10 件の要求の平均実行時間。 |
ミリ秒 |
CurrentNumberOfRequestsBeingServed |
この時点で提供されている要求の数。 |
整数 |
ErrorCount |
Confluence エラーページが提供された回数。 |
整数 |
この MBean は、メールディスパッチの試行と失敗に関連する情報を表示します。Confluence インスタンスで設定された SMTP メールサーバーごとに MBean があります。
プロパティ名 |
機能 |
値 |
|---|---|---|
EmailsAttempted |
Confluence が送信しようとしたメールメッセージの数。 |
整数 |
EmailsSent |
正常に送信されたメールメッセージの数。 |
整数 |
この MBean は、メールワークロードに関連する情報を示します。
プロパティ名 |
機能 |
値 |
|---|---|---|
ErrorQueueSize |
キュー内のエラー数。 |
整数 |
Flushing |
状態 (フラッシュの有無) を表示。 |
True/False |
FlushStarted |
稼働を開始した時間。 |
時間 |
RetryCount |
実行された再試行の回数。 |
整数 |
TaskSize |
ディスパッチのためにキューに入れられたメールメッセージの数。 |
整数 |
この MBean は現在のジョブ、スケジュール済みタスク、およびそれらが最後に実行された時間に関連する情報を表示します。
For Java 1.6, add the Top Threads Plugin to monitor whether CPU is spiking. Download it to a directory and run JConsole like this:
JConsole -pluginpath /pathto/topthreads.jar
This works only with jdk 1.6, but that can be on the remote machine if the server is running a lower version.