How to change JIRA's temp directories Edited

Hello,

How to change JIRA's temp directories?

JIRA as well as the other Atlassian tools use two directories for temprary contents.

1. <Install-Directory\temp> Temp directory configured in the Java runtime, used by some  components write temporary files or lockfiles

2. <JIRA-Home\temp> Temp directory used for runtime functions.

We've configured those for Conflunce according to the following tutorial https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html

How to do the same for JIRA?

 

1 answer

This widget could not be displayed.

Hi Michael,

I tested this and the instructions in How to Change the Temporary Directory is what you're going to need to do.

The lines in the article are already there so you'll just need to search the file for the code block and make the changes.  Once you make that change you'll need to restart JIRA.

You can confirm the change before and after by searching for the following in your JIRA_INSTALL/logs/catalina.out file:

 <java.io.tmpdir>

Cheers,

Branden

Hi Branden! Thanks for your responce!

I've changed the java.io.tmpdir parameter in the catalina server. This wad one by the registry setting -Djava.io.tmpdir=<temp dir>. This seems to work well - at least the java.io.tmpdir has been changed according to the JIRA log.

Do you think we could use this method? I consider it much more cleaner than editing some scripts.

Do you know how to easily simulate JIRA to create some temp files to test if it actually works?

 

Hi Michael,

Thanks for the follow up and I'm happy to hear the JVM method worked for you.  I didn't get that to work in my instance but it may have just been my instance.

I would consider it cleaner as well and since you can verify it worked by seeing the

java.io.tmpdir

being set correctly at startup I wouldn't see an issue with that as it should be an application agnostic command.

In regards to simulating temp files that is something I wanted to do as well but I was unable to find a method to do so before answering.  I will continue to look and let you know if I do but as of now I haven't.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

198 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you