This page describes how to set Java properties and options on startup for Confluence Stand-alone and EAR/WAR versions.

See Fix java.lang.OutOfMemoryError in Confluence for specific instructions for OutOfMemory Errors.

On this page:

Linux

  1. From <confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.sh.
  2. Find the section JAVA_OPTS=
  3. Refer to the list of parameters below.

(info) 引用内部では、各パラメーターをスペース区切りのリスト形式で追加します。

Windows (.batファイルから起動)

  1. <confluence-install>/bin (スタンドアロン) または <Tomcat-home>/bin (EAR-WAR インストレーション) で setenv.bat を開きます。
  2. Find the section set JAVA_OPTS=%JAVA_OPTS%
  3. Refer to the list of parameters below.

(info) Add all parameters in a space-separated list. Make sure to keep the string %JAVA_OPTS% in place.

Windows サービス

There are two ways to configure system properties when you Start Confluence Automatically on Windows as a Service, either via command line or in the Windows Registry

Windows サービスのプロパティをコマンド ラインから設定する

  1. Identify the name of the service that Confluence is installed as in Windows ( Control Panel > Administrative Tools > Services ):

    (info) In the above example, the SERVICENAME is: JIRA030908110721. Find the Confluence equivalent.
  2. Start >> Run >> type in 'cmd' >> Enter でコマンド ウィンドウを開きます。
  3. Confluence インスタンスの bin ディレクトリか、Confluence の EAR/WAR を実行している場合は Tomcat インストレーションの bin ディレクトリに cd します。
  4. 次のコマンドを実行します。

    tomcat6w //ES//%SERVICENAME%
    

    .
    (info) In the above example, it would be tomcat6w //ES//JIRA030908110721

  5. Click on the Java tab to see the list of current start-up options:
  6. Append any new option on its own new line by adding to the end of the existing Java Options. Refer to the list of parameters below.

Windows レジストリで Windows サービスのプロパティを設定する

Windows の一部のバージョンには、Java 変数をサービスに追加するオプションがありません。この場合、レジストリ内のオプション一覧を表示してプロパティを追加する必要があります。

  1. Go to {{Start >> Run, and run "regedit32.exe".
  2. Find the Services entry:
    32-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence
    64-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> Confluence
  3. 既存のプロパティを変更する (特に Xmx メモリを増やす) には、適切な値をダブルクリックします。
  4. 追加のプロパティを変更するには、オプションをダブルクリックします。
  5. Refer to the list of parameters below. Enter each on a separate line.

設定を確認する

To see what Confluence is using, check Viewing System Properties.

認識済みのシステム プロパティ

関連トピック

Recognized System Properties
Fix java.lang.OutOfMemoryError in Confluence