How to Change the Temporary Directory

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

JIRA uses value of java.io.tmpdir for temporary directory. Also by default Tomcat same variable and initialises this value equal to <JIRA_INSTALLATION_DIR>/temp. In some case that might lead to problem with permission or space. 

Code from <JIRA_INSTALLATION_DIR>/bin/catalina.sh:

if [ -z "$CATALINA_TMPDIR" ] ; then
  # Define the java.io.tmpdir to use for Catalina
  CATALINA_TMPDIR="$CATALINA_BASE"/temp
fi
...
-Djava.io.tmpdir="$CATALINA_TMPDIR"


Solution

Note

This applicable only for Linux.  

To move the java.io.tmpdir directory to a different location on the filesystem, edit <JIRA_INSTALLATION_DIR>/bin/setenv.sh and set (you may need to add this line) CATALINA_TMPDIR:

CATALINA_TMPDIR='/opt'


You need to restart JIRA for this to take effect.

Related KB: Index snapshot failed due to insufficient space on the storage


Last modified on Dec 12, 2017

Was this helpful?

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