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

Skip to end of metadata
Go to start of metadata

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

On this page:

Linux

To Configure System Properties in Linux Installations,
  1. From <jira-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.sh.
  2. Find the section JVM_SUPPORT_RECOMMENDED_ARGS=
  3. Refer to the list of parameters below.

(info) Add all parameters in a space-separated list, inside the quotations.

Windows (starting from .bat file)

To Configure System Properties in Windows Installations When Starting from the .bat File,
  1. From <jira-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.bat.
  2. Find the section set JVM_SUPPORT_RECOMMENDED_ARGS=
  3. Refer to the list of parameters below.

(info) Add all parameters in a space-separated list, inside the quotations.

Windows Service

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

Setting Properties for Windows Services via Command Line

Setting Properties for Windows Services via 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: JIRA030908110721
  2. Open the command window from Start >> Run >> type in 'cmd' >> Enter
  3. cd to the bin directory of your JIRA Standalone instance, or the bin directory of your Tomcat installation if your are running JIRA EAR/WAR.
  4. Run:
    .
    (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.

Setting Properties for Windows Services via the Windows Registry

In some versions of Windows, there is no option to add Java variables to the service. In these cases, you must add the properties by viewing the option list in the registry.

To Set Properties for Windows Services via 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 >> 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. Refer to the list of parameters below. Enter each on a separate line.

Verifying Your Settings

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:

This display is also available by Viewing your System Information.

List of Startup Parameters

Memory Property

Notes

Related Pages

-Xmx
-Xms
XX:MaxPermSize

These properties are pre-existing. See related pages for instructions.

Increasing JIRA Memory

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

Set these for Garbage Collection tuning.

Using Garbage Collection Logs to Analyze JIRA Performance
Using Memory Dumps to Analyze OutOfMemoryErrors

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

 

Profiling Memory and CPU Usage with YourKit

Mail Property

Notes

Related Pages

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

Set to 'true' to disable mail. In Linux setenv.sh, there is a pre-existing flag to uncomment.

Migrating JIRA to Another Server
Notifications Are Issued for Incorrect Issues

-Dmail.debug

If set to "true", logs statements related to mail

Configuring JIRA to Send SMTP Mail
Creating Issues and Comments from Email

-Dmail.mime.decodetext.strict

 

Unable to Decode Mail Subject or Body when Creating Issue From Email

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

 

Authenticate Failed Error when Connecting to Exchange

-Dmail.imap.starttls.enable

 

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

-Dmail.mime.decodeparameters

Sets mail handler to work correctly with emails from RFC 2231-compliant mail clients.

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

-Dmail.smtp.localhost

 

Problems Sending Email from JIRA - EHLO requires domain address

Encoding Property

Notes

Related Pages

-Dfile.encoding

Set to utf-8 for encoding consistency

Integrating JIRA with CVS and ViewCVS
Characters Not Supported by ASCII are Being Displayed as Question Marks
Internationalisation and Encoding Troubleshooting
SQL Exception while Updating Issues or Importing Data in JIRA with MySQL Due to Encoding
International Characters in Notification Email Subject Lines Are Being Replaced with Question Mark

Other Properties

Notes

Related Pages

-Djira.trackback.senddisabled

When set to true, disables trackbacks

Enabling Trackback

-Duser.timezone

 

Incorrect Times Displayed in JIRA

-Dsvnkit.http.methods

Values include 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

OutOfMemory Due to Tomcat Memory Leak
JRA-10145

-ea/-da

Enable/Disable assertions

java.lang.AssertionError When Sending Mail Via SMTP

-Djava.net.preferIPv4Stack

 

SocketException to Announce 'Invalid argument' for an Available Port

-Djavax.net.ssl.trustStore

 

Connecting to SSL services
Unable to Access SSL Services due to java.security.InvalidAlgorithmParameterException

-Djava.awt.headless

Ships with true by default. Allows thumbnail generation.

 

  • No labels