Connection refused / Garbage collection errors

Today, while trying to connect to my JIRA installation at:

https://ns3055913.ip-5-135-162.eu:8080/secure/WelcomeToJIRA.jspa

I get a connection refused. This is the first time this has happened in the month since installing JIRA. Other services on this machine are online. No configuration changes have been made since installing JIRA.

I have already tried running stop-jira.sh and start-jira.sh; this generated a new log file for me to look at which was full of GC allocation failures. Googling indicates this has to do with 'garbage collection,' but I have no idea what this is nor how to correct or 'tune' it - the article about tuning it seemed to require an MS in Computer Science. Sadly, I'm a novice sysadmin so I have no idea how to correct this to get back to our tickets.

We use JIRA for a very non-business approach; managing our chores around the house.

2 answers

SUPER weird - it's working now. All by itself. (I realize I incorrectly pasted the URL above with https and since I have no SSL cert, the browser rejects the connection; but earlier, even over regular http on port 8080 it was saying connection refused. Now I'm getting the login screen.)

Can someone help me with an RCA on this so I can figure out why it mystically fixed itself?

0 votes
Mizan Community Champion Oct 01, 2017 • edited

Based on the information you have provided :

 

You encountered a Full GC which means that JIRA will not be available to users and fully concentrate on freeing memory, so that it can function normally. However, there is no memory which is unused and all the memory is holded by JIRA so we get an allocation failure error.

Since you restarted, the memory is flushed, but the problem is likely to occur again . When ? we dont know, it can be few days or more.

It seems you are using the default memory settings which comes with JIRA i.e. 1 GB for the Xmx. This setting is for evaluation and may not work perfectly for production use. If this is the case try using 2 GB instead.

This is configured in the file <application-dir>/bin/setenv.sh

Troubleshooting Full GC issues is not straight forward , you will need to generate heap dump and take thread dumps during the incident. Analyze this information using tools like MAT and Thread dump analyzer.

Probable causes are third party add-ons , memory intensive operations, etc

Hope this helps. 

Thanks. Since only my wife and I use it for tasks around the house, I'd be surprised if JIRA really needs production-level memory since it's literally only 2 users. I'll look into it though - I'm not sure if this box (a cheap VM) has those resources available.

 

Once I make the changes to setenv.sh, would I execute it? Or does start-jira.sh execute it once I restart the application?

Mizan Community Champion Oct 01, 2017

Restart is needed once you update the file. However, 1 GB should be enough for your case. The problem might be resources on your VM. If you are not evaluating JIRA you might want to try Trello for tracking your personal tasks . Hosted , free and Atlassian 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

432 views 1 14
Read article

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