Configuring your system properties

Learn how to set Java system properties and startup options for Bamboo.

On this page:

Linux

To configure system properties in Linux installations:

  1. From <bamboo-install-dir>/bin, open setenv.sh.
  2. Find the section JVM_SUPPORT_RECOMMENDED_ARGS=.
  3. Refer to the list of parameters below.

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

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

Windows インストールで .bat ファイルから開始する場合にシステム プロパティを設定する方法

  1. From <bamboo-install-dir>\bin, open setenv.bat.
  2. set JVM_SUPPORT_RECOMMENDED_ARGS= セクションを探します。
  3. Refer to the list of parameters below.

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

Docker

For Bamboo running in a Docker container, none of the system properties or startup options you set with setenv.sh will be persisted between container restarts. To persistently set system properties and startup options, use the docker run command to recreate the container from the same image, passing the JVM_SUPPORT_RECOMMENDED_ARGS environment variable with a space-separated list of options using the -e or --env-file flags.

例:

docker run [...] --name="bamboo" -e=JVM_SUPPORT_RECOMMENDED_ARGS="[options]" atlassian/bamboo:<bamboo-version>

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

For more information, see Set environment variables (-e, --env, --env-file) in the Docker Docs.

Windows サービス

There are two ways to configure system properties when starting Bamboo as a service — either in the command prompt or in the Windows registry.

Setting properties for Windows services from the command line

  1. Identify the name of the service that Bamboo is installed as in Windows (Control panel > Administrative tools > Services):


  2. Open a command prompt by selecting StartRun.
  3. In the Run window, type cmd and press the Enter key.
  4. In the command prompt, navigate to the bin subdirectory of your Bamboo installation directory.
  5. 次のコマンドを実行します。

    bamboow.exe //ES//%SERVICENAME%

    Following the example above, the full command would be:

    bamboow.exe //ES//Bamboo
  6. Select the Java tab to see the list of current start-up options.
  7. 新しいオプションを追加する場合は、既存の Java オプションの最後に新しい行として追加します。下記のパラメーター一覧を参照してください。

    If you want to change the heap size configured for the JVM, use the Initial memory pool and Maximum memory pool fields instead of adding the -Xms and -Xmx parameters to the list of Java options.

Setting properties for Windows services using the Windows registry

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

To set properties for Windows services using the Windows registry

  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 >> Bamboo
    64-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> Bamboo
  3. 既存のプロパティを変更する (特に Xmx メモリを増やす) には、適切な値をダブルクリックします。
  4. 追加のプロパティを変更するには、オプションをダブルクリックします。
  5. Refer to the list of parameters below. Enter each on a separate line.

Changing the Bamboo start port

  1. Stop Bamboo.
  2. <Bamboo install directory>/conf/server.xml を編集します。
  3. Update the following so that Connector port is set to the port value you require:

     <Service name="Catalina">
            <Connector port="8085"
                       maxThreads="150"
                       minSpareThreads="25"
                       connectionTimeout="20000"
                       enableLookups="false"
                       maxHttpHeaderSize="8192"
                       protocol="HTTP/1.1"
                       useBodyEncodingForURI="true"
                       redirectPort="8443"
                       acceptCount="100"
                       disableUploadTimeout="true"/>
  4. Bamboo を再起動します。


起動パラメーターの一覧

Memory Property

注意

Related Pages

-Xmx 
-Xms 
XX:MaxPermSize

これらのプロパティはすでに存在します。詳しくは関連ページを参照してください。

Tuning the Java heap

-XX:+PrintGCTimeStamps -verbose:gc -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError

ガベージ コレクションのチューニングの際に設定します。

Tuning Java VM garbage collection



最終更新日: 2024 年 2 月 22 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.