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?
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:
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?
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
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.
In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to have–in order to produce a reliable long-term roadmap. We're tur...
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!
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