Confluence 5.6 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
長期間にわたるご使用に際しては、Confluence をオペレーティング・システムが再起動するとき自動的に起動するように設定することをお勧めします。Windows サーバーに関しては、Confluence を Windows サービスとして実行するように設定してください。
Confluence ディストリビューションをサービスとしてインストールするには次の2つの方法があります。Confluence インストーラーを用いる方法と以下に述べるように手動で行う方法です。
On this page:
64ビット Windows に関する問題
64 ビットの Windows をご使用の場合は、 64 ビット JDK を用いているときに Apache Tomcat を Windows サービスとして実行する際の問題が発生する可能性があることにご注意ください。詳細は弊社のナレッジベース記事をご参照ください。
Windows サービスとしてインストールすることには以下のようなメリットがあります。
詳細な情報は Microsoft デベロッパーネットワーク 内の Windows サービスについて、をご覧ください。
If you wish to run the service as a non-administrator user for security, or if you are using network drives for backups, attachments or indexes, you can run the service as another user. To change users, open the Apache Tomcat Confluence properties, go to the 'Log On' tab and enter the required username and password. Go to your Windows Control Panel -> User Accounts and confirm that the user has write permissions for the <CONFLUENCE-INSTALL> and <CONFLUENCE-HOME> directories, and all subfolders. Note that any network drives must be specified by UNC and not letter mappings (eg. \\backupserver\confluence
not z:\confluence
).
より詳細は、こちらをご覧ください。 Confluence のを実行するためのオペレーティング·システム上の専用のユーザーアカウントを作成する。
Windows ベースのサーバーから
<CONFLUENCE-INSTALL>/bin
directory.JAVA_HOME 変数がコマンドの JDK ベースディレクトリに設定されていることを確認する
echo %JAVA_HOME%
Note that any directory in the path with spaces (eg. C:\Program Files
must be converted to its eight-character equivalent (e.g. C:\Progra~1
).
次のコマンドを使ってデフォルトの設定でサービスをインストールしてください。
service.bat install Confluence
注意: これは Apache Tomcat Confluence と呼ばれるサービスを作成します。
さて、サーバーが起動するときに自動的にサービスを起動させるために、以下のように実行してください:
tomcat7 //US//Confluence --Startup auto
(if you are using a different version of tomcat, specify your tomcat version, e.g. tomcat6
)
メモリが 512 MB より少ない場合は、このステップをスキップしてください。大きな Confluence インストールのユーザに関しては、Confluence の使用できる最大メモリを増加することができます。 (デフォルトは 256MB)。例えば、以下のコマンドを使って最大メモリを 512 MB に設定できます:
tomcat7 //US//Confluence --JvmMx 512
Confluence のディストリビューションに渡す JVM パラメータを持っていない場合は、このステップをスキップできます。その場合は、JVM パラメータをサービスに以下のコマンドを使って追加してください:
tomcat7 //US//Confluence ++JvmOptions="-Djust.an.example=True"
コマンドで Confluence サービスを起動する:
net start Confluence
Confluence サービスをコマンド・プロンプトから管理することができます。
下記ののコマンドで Confluence を停止してください:
net stop Confluence
下記ののコマンドで Confluence サービスをアンインストールしてください:
service.bat remove Confluence
Confluence をアップグレードした後、その Windows サービスをアンインストールまたは再インストールしたり、StartPath パラメータを新しいフォルダーに変更したりできます。ヘルプは、Tomcat ドキュメンテーションを参照してください。
メモリー関連の問題やバグを調べる場合は、Confluence のガベージコレクションからの情報が役に立つかもしれません。verbose ガベージコレクションを有効にするには、次のコマンドを利用してください: You can use a Sysinternals tool called 注意 他のアトラシアン アプリケーションに支障が出る恐れがあるので、このツールを長時間実行することは推奨されません。必要な情報を取得できたら、 上記のトラブルシューティングの案内に従っても Confluence を Windows のサービスとして実行できない場合、あるいはサービス実行のための jvm 設定中にエラーが生じる場合は、こちらでサポート依頼を作成できます。 サポートに必要となりますので、下記の情報をご記入ください:
tomcat6 //US//Confluence ++JvmOptions="-Xloggc:<CONFLUENCE-INSTALL>\logs\atlassian-gc.log"
service.bat
. Please refer to reported issue CONF-12785.Procmon.exe
from the The Microsoft Windows Sysinternals Team, to check that the error occurred at the specific time when the Confluence service started. You need to match the time when Tomcat failed, as captured by this tool, against the time in the Windows Event Viewer.Ctrl + E
を押してツールを停止させてください。サポートを受ける
java -version
の実行結果。
Starting Confluence Automatically on System Startup
Fix java.lang.OutOfMemoryError in Confluence