Documentation for JIRA 5.0. Documentation for other versions of JIRA is available too.

このページでは、Jira の起動時に Java プロパティとオプションを設定する方法について説明します。

On this page:

Linux

Linux インストールでシステム プロパティを設定する方法
  1. From <jira-install>/bin (or <Tomcat-home>/bin for JIRA WAR installations), open setenv.sh.
  2. JVM_SUPPORT_RECOMMENDED_ARGS= セクションを探します。
  3. 下記のパラメーター一覧を参照してください。

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

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

Windowsインストールで .bat ファイルから起動する際にシステム プロパティを設定する方法
  1. From <jira-install>/bin (or <Tomcat-home>/bin for JIRA WAR installations), open setenv.bat.
  2. set JVM_SUPPORT_RECOMMENDED_ARGS= セクションを探します。
  3. 下記のパラメーター一覧を参照してください。

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

Windows サービス

There are two ways to configure system properties when starting Running JIRA as a Service, either via command line or in the Windows Registry

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

Windows サービスのプロパティをコマンド ラインから設定する
  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: JIRA030908110721
  2. Start >> Run >> type in 'cmd' >> Enter でコマンド ウィンドウを開きます。
  3. cd to the bin directory of your JIRA Installation Directory (or the bin directory of your Tomcat installation if your are running JIRA WAR).
  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. 新しいオプションを追加する場合は、既存の Java オプションの最後に新しい行として追加します。以下のパラメーター一覧を参照してください。

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

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

Windows サービスのプロパティを Windows レジストリで設定する方法
  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 >> JIRA
    64-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> JIRA
  3. To change existing properties, especially increasing Xmx memory, double-click the appropriate value.
  4. To change additional properties, double-click options.
  5. 以下のパラメーター一覧を参照してください。各行に1つずつ入力します。

設定を確認する

設定した内容を確認するには、<jira-home>/logs/atlassian-jira.log または catalina.out ファイルを確認します。起動部分のセクションは次のようになっています。

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

This display is also available by Viewing your System Information.

List of Startup Parameters

Memory Property

注意

Related Pages

-Xmx
-Xms
XX:MaxPermSize

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

JIRA メモリの容量を増やす

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

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

Troubleshoot Jira Server performance with GC logs
Analyze OutofMemory errors in Jira Server and Data Center with heap dumps

-agentlib:yjpagent=onexit=memory,dir=/path/to/write/snapshots

 

[アーカイブ済み] YourKit でメモリと CPU の利用状況をプロファイリングする

Mail Property

注意

Related Pages

-Datlassian.mail.senddisabled
-Datlassian.mail.fetchdisabled
-Datlassian.mail.popdisabled

メールを無効にするには "true" に設定します。Linux の setenv.sh には、コメントを解除するためのフラグが存在します。

Migrating JIRA to Another Server
Jira users get unexpected email notifications from incorrect Jira Issue keys or from automation rules that were disabled

-Dmail.debug

"true" に設定すると、メールに関する情報がログに記述されます。

Configuring JIRA's SMTP Mail Server to Send Notifications
Creating Issues and Comments from Email

-Dmail.mime.decodetext.strict

 

メールで課題を作成する際にメールの件名と本文のデコード不可

-Dmail.imap.auth.plain.disable
-Dmail.imaps.auth.plain.disable

 

OAuth を使用する際に、Jira Server のログで IMAP セットアップが AUTHENTICATE Failed エラーで失敗する

-Dmail.imap.starttls.enable

 

'javax.mail.MessagingException No login methods supported' Due to IMAP over SSL

-Dmail.mime.decodeparameters

RFC 2231 準拠のメール クライアントからのメールに対して適切に動作するようにメール ハンドラを設定します。

Installing JIRA WAR-EAR
Installing JIRA on Tomcat 5.5
JIRA 4.0 Upgrade Guide

-Dmail.smtp.localhost

 

JIRA からのメール送信の問題 - EHLO がドメインのアドレスを要求している

Encoding Property

注意

Related Pages

-Dfile.encoding

エンコーディングの一貫性のため、utf-8 に設定します。

Integrating JIRA with CVS and ViewCVS
Characters Not Supported by ASCII are Being Displayed as Question Marks
Troubleshoot character display issues in Jira server
Jira Data Center throws SQL Exception while updating issues or importing data into MySQL due to encoding
International Characters in Notification Email Subject Lines Are Being Replaced with Question Mark

その他のプロパティ

注意

Related Pages

-Duser.timezone

 

Incorrect timestamps displayed in Jira server

-Dsvnkit.http.methods

Basic、Digest、Negotiate、NTLM を含む値

JIRA Startup Fails Due to 'java.lang.SecurityException Unable to locate a login configuration'
Subversion Plugin Displays 'An unknown error occurred - actions == null' Due to SVN Authentication

-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER

false

(Archived) OutOfMemory Due to Tomcat Memory Leak
JRA-10145

-ea/-da

アサーションを有効化 / 無効化

SMTP 経由でメールを送信すると java.lang.AssertionError が発生する

-Djava.net.preferIPv4Stack

 

利用可能なポートで "Invalid argument" による SocketException が発生する

-Djavax.net.ssl.trustStore

 

Connecting to SSL services
Unable to Send Email 'javax.net.ssl.SSLException' Due to SMTP Server via SSL

-Djava.awt.headless

デフォルトで true。サムネイルの生成を許可します

 

  • ラベルなし