Let JIRA standalone and Stash run from the same Tomcat?

I've got a vServer running standalone JIRA and standalone Stash. They use both 2,5 Gigabyte RAM (despite having only very little content on them). Therefore I'm looking for ways to limit the memory-usage.

How can I let both application run from the same Tomcat?

Are there other ways to improve the memory situation?

1 answer

0 votes

I wouldn't do this.  Atlassian's standard recommendation is to run their applications in separate Tomcat installations.

If you look at the way Tomcat runs, you'll generally find that it is using a tiny fraction of the resources that are in use for Stash or Jira.  The resource saving of running them both in one Tomcat is so small, you probably won't even be able to detect it.  But you'll quickly notice the slower threading, issues with class paths, the annoyance that you can't analyse their running separately, the need to stop both just to change something on one of them, and, and, and...

Keep them separate, it's well worth it. 


OK, but how can I limit Tomcat's memory usage? 2,5 GB for two applications is too much. I only have 2,5 GB available so the server is slow because of all the swapping :(

Set the upper limits on the processes using the -Xmx flags in setenv.sh

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,096 views 13 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot