How to automate Garbage collector in Jira 4.0??

Hi All,

We have one Jira instance that is automatically going in to down state if the Memory is fully used by JVM,

So we need to restart that instace per day , when i go to "System Info" Option to my Jira instance i found that the Memory Graph is fully red and Free Memory is only 10 Mb then i need to force Garbage collector to free up some memory but this is not good, So pleasec can anyone tell me that How to automate garbage collector to run automatically in Jira??

1 answer

1 accepted

Garbage Collector runs automatically in any JVM. That's the idea.

However, you can tune your JVM (this including increasing your heap size).

A good article is this one http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html

its ok Radu, but why my memory graph is used 100% by the Jira and why my Jira is going to down state??

That's a complex question. It does sound like you need to do some memory tuning, but there's no way to tell why you're using all the memory without a LOT more detail. It's most likely to be that your installation is pretty close to being maxed out and you need to give it more working memory. But don't quote me on that, it really is a guess. We'd need to know your current memory parameters, version of Jira, details on how you are using it, version of java to get started.

As Nic explained, the "why" question is hard to answer without more information. Describing the actions you took to resolve (temporary) your problem does not help us to give you a correct diagnosis. In other words, *you* must understand first what's going on there.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

461 views 83 11
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