Setting properties and options on startup

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

On this page:

Linux

To Configure System Properties in Linux Installations,

  1. From <jira-install>/bin, 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, 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 as a Windows 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 application installation directory.
  4. Run:

    tomcat8w //ES//%SERVICENAME%
    

    (info) In the above example, it would be tomcat8w //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:

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

Notes

Related pages

-Xmx
-Xms
XX:MaxPermSize

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

Increasing Jira memory

-XX:+PrintGCDetails

-XX:+PrintGCDateStamps

-XX:+PrintGCTimeStamps

-XX:+PrintGCCause

-Xloggc:C:\Program Files\Atlassian\Application Data\JIRA\log\atlassian-jira-gc-%t.log

-XX:+UseGCLogFileRotation

-XX:NumberOfGCLogFiles=5

-XX:GCLogFileSize=20M

These properties are pre-existing, and are used for Garbage Collection tuning.

Using Garbage Collection Logs to Analyze Jira Application Performance
Analyze OutofMemory errors in Jira server with Heap Dumps

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


[Archived] Profiling Memory and CPU Usage with YourKit

-XX:InitialCodeCacheSize=32m

-XX:ReservedCodeCacheSize=512m

These properties are pre-existing, and are used to configure the size of the JVM code cache. A high value of reserved size allows Jira to load more installed apps.

The default configuration should be optimal for most Jira instances and solve any problems with the code cache getting full.

KB article: Jira crashes due to the CodeCache

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 Jira Issues

-Dmail.debug

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

Configuring Jira's SMTP mail server to send notifications
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


IMAP setup fails with AUTHENTICATE Failed error in logs in Jira server when using OAuth

-Dmail.imap.starttls.enable


Jira server unable to retrieve messages from IMAP server with No login methods supported error

-Dmail.mime.decodeparameters

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


-Dmail.smtp.localhost


Problems Sending Email from Jira - EHLO requires domain address

Encoding property

Notes

Related pages

-Dfile.encoding

-Dsun.jnu.encoding

Set to utf-8 for encoding consistency

Characters Not Supported by ASCII are Being Displayed as Question Marks
Internationalization 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

Notes

Related pages

-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

true

(Archived) 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


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

-Djava.awt.headless

Ships with true by default. Allows thumbnail generation.


-Dhttp.proxyHost

-Dhttp.proxyPort

-Dhttps.proxyHost

-Dhttps.proxyPort

Outbound Proxy Server hostname and portHow 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
-Datlassian.plugins.enable.wait

Time Jira waits for apps to load.

Jira System Plugin Timeout While Waiting for Plugins to Enable

-Datlassian.plugins.startup.options="--disable-all-addons --disable-addons=com.atlassian.test.plugin"

Allows Jira to start with all user installed or specific user installed apps disabled. For more information on manual start up and specifying apps, see Start and Stop Jira applications.Start and Stop Jira applications
-Dhide.system.error.details

Hides the details of errors that are displayed after starting Jira. The page (johnson) where these are displayed will still notify you about the errors.


-Djira.startup.warnings.disable

Disables the page (johnson) that displays errors after starting Jira if there are only dismissible warnings. The page will appear if there are any important errors.


Last modified on Sep 9, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.