JIRA is now available as three separate applications, JIRA Software, JIRA Service Desk, and JIRA Core. For more information on administering these applications, refer to the Administering JIRA Applications documentation.

Setting Properties and Options on Startup

This page describes how to set Java properties and options on startup for JIRA.

On this page:


To Configure System Properties in Linux Installations,
  1. On the <jira-install>/bin (or <tomcat-home>/bin for JIRA WAR installations) directory, open the setenv.sh file
  2. Add necessary arguments to the JVM_SUPPORT_RECOMMENDED_ARGS variable;

If needed, refer to the list of parameters here.

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

Windows (starting from .bat file)

To Configure System Properties in Windows Installations When Starting from the .bat File,
  1. On the <jira-install>\bin (or <tomcat-home>\bin for JIRA WAR installations) directory, open the setenv.bat file
  2. Add necessary arguments to the JVM_SUPPORT_RECOMMENDED_ARGS variable;

If needed, refer to the list of parameters here.

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

Windows Service

There are two ways to configure system properties when starting Running JIRA 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: JIRA231112155942
  2. Open the command window from 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. Run:

    (info) In the above example, it would be tomcat7w //ES//JIRA231112155942

  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


Related Pages


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 Application Performance
Using Memory Dumps to Analyze OutOfMemoryErrors


Profiling Memory and CPU Usage with YourKit

Mail Property


Related Pages


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


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

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


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


Authenticate failed error when connecting to Exchange


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


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

Installing JIRA WAR-EAR JIRA 4.0 Upgrade Guide


Problems Sending Email from JIRA - EHLO requires domain address

Encoding Property


Related Pages


Set to utf-8 for encoding consistency

Integrating JIRA with CVS and ViewCVS
Characters Not Supported by ASCII are Being Displayed as Question Marks
JIRA Application internationalisation and encoding troubleshooting
SQL Exception while updating issues or importing data in JIRA applications with MySQL due to encoding
International Characters in Notification Email Subject Lines Are Being Replaced with Question Mark

Other Properties


Related Pages


Incorrect Times Displayed in JIRA


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



OutOfMemory Due to Tomcat Memory Leak


Enable/Disable assertions

java.lang.AssertionError When Sending Mail Via SMTP


SocketException to Announce 'Invalid argument' for an Available Port


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


Ships with true by default. Allows thumbnail generation.





Outbound Proxy Server hostname and port How to Configure an Outbound HTTP and HTTPS Proxy for JIRA applications
-Dorg.apache.catalina.SESSION_COOKIE_NAME   Logging into another Atlassian application logs me out of Confluence

Time JIRA waits for plugins to load.

JIRA applications System Plugin Timeout While Waiting for Add-ons to Enable

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

17 Archived comments

  1. User avatar


    What do you mean?


    You can see that at the very beginning of this article.

    Or am I missing something, perhaps?

    29 Dec 2010
    1. User avatar



      This file does not exist so it needs to be created. If you look in $CATALINA_HOME/bin/catalina.sh you will see that this file will be included if it does exist.

      15 Feb 2011
  2. User avatar


    I am trying to install Jira 4.3.1 onto a brand new Windows XP machines and getting

    a "java.lang.OutOfMemoryError: PermGen space" error almost immediatley! NOT GREAT!

    If think I need to increase "XX:MaxPermSize" but this page does not give EXACT syntax details.

    If I run    tomcat6w.exe //ES/JIRA070411125536   and go the the "Java" tab, then adding

    -DXX:MaxPermSize=512m     doesn't seem to work.

    Can someone please supply an example of the EXACT syntax required.

    Also, should I be using JIRA 4.3.1 yet???



    08 Apr 2011
    1. User avatar

      Rosie Jameson [Atlassian]

      Garry, I think you may have encountered one of the bugs fixed in 4.3.2 — could you please give that a try, and contact http://support.atlassian.com if the problem persists? Many thanks.

      12 Apr 2011
  3. User avatar


    Run "tomcat6w.exe //ES//JIRAnnnnnnn"  (nnnnnnn as shown on the properties screen for
    the JIRA 4.3.1windows service.

    Select the Java tab and at the end of the Java Options entry field add a new line with:


    Then click on OK

    Restart (or Start) the JIRA service

    10 Apr 2011
  4. User avatar

    Greg Redl

    I'm using Exchange 2007 and would like to integrate the Create Issues and Comments from Email.  Does anyone know if there are POP3 startup options, similar to that of IMAP, where I can enable TLS and disable plain text authentication?

    25 Aug 2011
  5. User avatar



    I'm having an issue with the -Dfile.encoding setting. In the text above it mentions to set this to value utf-8 in the Tomcat-7 documentation it mentions to use "UTF-8" and in other documentation I have read to set it to "utf8".

    I realize that upper/lowercase is important in Java/Tomcat and I can't figure out what the correct way of setting this value is.

    Can anyone shed a light on this?



    02 Jan 2013
  6. User avatar



    I'm looking at my setenv.sh and I don't have


    In it... Running CentOS release 5.6.

    Anyone got any ideas - experience with this? Am I being daft?



    24 Jan 2013
    1. User avatar

      Darren Pegg

      Check 9 rows down.. (smile)

      15 Jul 2013
      1. User avatar

        Bill Bailey

        I have no clue what you are referencing. 9 rows down from where? In what?  I have the same issue. The docs say modify that line. I do not have that line in my setenv.sh

        08 Jan 2015
  7. User avatar


    Step 4 in "Windows Service" service is inconsistent with Step 1. Screenshot in Step 1 shows tomcat5.exe in path to service executable. However, Step 4 says that matching executable to run would be tomcat7w

    1) I think matching executable to run via command line should be tomcat5w (based on screenshot from Step 1)

    2) It needs to be explained that w has to be added to executable name from service path.

    30 Jan 2013
  8. User avatar

    Nguyen Duy Hung

    Please help me!

    I restart server windows 2003, after JIRA 4.4.4  error not working


    thanks all !


    09 Mar 2013
  9. User avatar

    Royce Wong

    Where is -Datlassian.plugins.enable.wait in this documentation? That optioned is mentioned in JIRA applications System Plugin Timeout While Waiting for Add-ons to Enable.

    15 Jan 2014
    1. User avatar

      Bejoy Jaison [Atlassian]

      Have added it now towards the end of the list within other properties. Thanks for highlighting that.

      18 Jun 2014
  10. User avatar


    I am trying to upload a file with Japanese characters onto a JIRA issue. It is running on an HTTPS connection. It works fine on an HTTP connection. On HTTPS it does not get attached. It says "Cannot attach. Unknown server error (500)". How to get it to work?

    21 Mar 2014
  11. User avatar


    Could you please extend this instruction for the case of JIRA development edition (e.g. JIRA starting from maven build script deploying tomcat from the web to the target folder). Where I should put JAVA parameters in this case? Please give an instruction on how I should change my pom.xml file.

    25 Jan 2015
  12. User avatar

    Jason Gross

    For Linux you will edit the setenv.sh file located here --> <confluence install>/bin/setenv.sh.  At the bottom of it, append something like: 

    CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true -Datlassian.plugins.enable.wait=300" 

    depending on what your parameter is.  Then when the application starts, it will pull from this file.


    02 Feb 2015
Powered by Confluence and Scroll Viewport