Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,466
Community Members
 
Community Events
165
Community Groups

How to periodically restart Jira?

Hi dear community,

we are running Jira 8.13 on Ubuntu and our test-system periodically stops working due to out of memory.

As this is only happening on our testsystem and basially only afects myself, I would like to have a quick and easy solution. I tried to stop and start jira manually, which solved the issue.

 

I tried to implement a cron-job to stop and restart jira every monday night, but it doesn't work - well the event triggers, but jira does not stop, nor restart. 

 

# Jira Service jeden Montag Morgen um 00:00 stoppen
0 0 * * 1 /etc/init.d/jira stop

# Jira Service jeden Montag Morgen um 00:03 wieder starten
3 0 * * 1 /etc/init.d/jira start

 

Logs are not very helpful.

 


Sep 19 23:58:40 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:54899->[10.50.70.206]:161
Sep 19 23:59:01 cl1app-06-t CRON[6966]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 60 2)
Sep 20 00:00:01 cl1app-06-t CRON[6972]: (root) CMD (/etc/init.d/jira stop)
Sep 20 00:00:01 cl1app-06-t CRON[6971]: (CRON) info (No MTA installed, discarding output)
Sep 20 00:00:40 cl1app-06-t systemd[1]: Starting Discard unused blocks...
Sep 20 00:00:40 cl1app-06-t systemd[1]: Started Discard unused blocks.
Sep 20 00:02:05 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:65020->[10.50.70.206]:161
Sep 20 00:02:05 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:65036->[10.50.70.206]:161
Sep 20 00:02:15 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:65223->[10.50.70.206]:161
Sep 20 00:02:20 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:65316->[10.50.70.206]:161
Sep 20 00:02:25 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:58052->[10.50.70.206]:161
Sep 20 00:02:30 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:58151->[10.50.70.206]:161
Sep 20 00:02:35 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:58239->[10.50.70.206]:161
Sep 20 00:02:40 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:58428->[10.50.70.206]:161
Sep 20 00:02:45 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:58513->[10.50.70.206]:161
Sep 20 00:02:50 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:59024->[10.50.70.206]:161
Sep 20 00:02:55 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:59113->[10.50.70.206]:161
Sep 20 00:03:00 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:51711->[10.50.70.206]:161
Sep 20 00:03:01 cl1app-06-t CRON[7002]: (root) CMD (/etc/init.d/jira start)
Sep 20 00:03:01 cl1app-06-t CRON[7001]: (CRON) info (No MTA installed, discarding output)
Sep 20 00:03:05 cl1app-06-t snmpd[1148]: Connection from UDP: [10.50.70.65]:51800->[10.50.70.206]:161


 

Any help is very much appreciated.

 

 

2 answers

Hi everybody,

we did an upgrade to version 8.19.1, which solved the issue. No periodical restart nessesary.

Unfortunately, version 8.19.1 has a bug, which affects us:

0 votes
Fadoua Community Leader Sep 22, 2021

@schneich 

You shouldn't have this problem. I won't suggest you to restart the service every week. There are instances running 24/7

If you are seeing an Out of Memory issue that means your system doesn't meet may be the required configuration. Please check the following doc:

https://confluence.atlassian.com/adminjiraserver/jira-applications-installation-requirements-938846826.html

Let me know if you have any questions

Best,

Fadoua

Thank you very much for your replay. Our live-system is running 24/7 without any (memory) issues.

I will check your link. But as I indicated, this only affects me and I cannot allocate more ressources to the system. A simple reboot would do the trick. :-)

Like Fadoua likes this
Fadoua Community Leader Sep 22, 2021

Sometimes too much can create a problem as well. This is from experience. 

Best way is to check Atlassian System requirements. It is very helpful.

All the best,

Fadoua

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

188 views 1 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you