Startup check: Adding and removing JIRA system properties

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

This page describes how to set Java properties and options on startup for JIRA. This process should only be undertaken if you have a full understanding of the impact these system properties have on your JIRA instance. For this page, we'll use the hide.system.error.details property as an example. When this property is set, it hides all details of configuration problems when you're attempting to start JIRA. If you're a JIRA administrator, you can still view more information on these configuration problems in the logs, but for anyone trying to access your instance, they'll simply see an error message. Removing the properties will expose the details of these configuration problems to anyone trying to access your instance.

We would like to encourage you to add the property XX:+IgnoreUnrecognizedVMOptions on adding any properties to the startup. This will ensure that Jira won’t fail to start due to a bad parameter, as this allows to bypass any bad arguments being passed to Java.

 Linux

  1. <jira-install>/bin から、setenv.sh を開きます。
  2. JVM_SUPPORT_RECOMMENDED_ARGS= セクションを探します。
  3. Remove the hide.system.error.details property.
  4. ファイルを保存します。

(info) All parameters must be in a space-separated list, inside the quotations.

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

  1. <jira-install>/bin から、setenv.bat を開きます。
  2. set JVM_SUPPORT_RECOMMENDED_ARGS= セクションを探します。
  3. Remove the hide.system.error.details property.
  4. ファイルを保存します。

(info) All parameters must be in a space-separated list, inside the quotations.

Windows サービス

There are two ways to configure system properties when running JIRA as a Windows service, either via command line or in the Windows registry.

Setting properties for Windows services via the command line

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

    (info) In the above example, the SERVICENAME is: JIRA231112155942
  2. Start >> Run >> type in 'cmd' >> Enter でコマンド ウィンドウを開きます。
  3. cd to the bin directory of your JIRA application installation directory.
  4. 次のコマンドを実行します。

    tomcat8w //ES//%SERVICENAME%
    

    (info) 上記の例では、tomcat8w //ES//JIRA231112155942 となります。

  5. Java タブをクリックして、現在の起動オプションの一覧を表示します。
  6. Remove or add options in the Java options section.
  7. [適用] をクリックします。

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

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

  1. Start >> Run に移動し、"regedit32.exe" を実行します。
  2. Find the Services entry:
    32-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> JIRA
    64-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> JIRA
  3. 既存のプロパティを変更する (特に Xmx メモリを増やす) には、適切な値をダブルクリックします。
  4. 追加のプロパティを変更するには、オプションをダブルクリックします。
  5. Remove properties by deleting them, or enter properties on a separate line.

設定を確認する

To verify what settings are in place, check the <jira-home>/logs/atlassian-jira.log or catalina.out file. A section in the startup appears like this:

JVM Input Arguments : -Djava.util.logging.config.file=/usr/local/jira/conf/logging.properties -XX:MaxPermSize=256m -Xms256m -Xmx384m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/jira/endorsed -Dcatalina.base=/usr/local/jira -Dcatalina.home=/usr/local/jira -Djava.io.tmpdir=/usr/local/jira/temp

最終更新日 2022 年 4 月 21 日

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

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