Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

OutOfMemoryError

Michael Kohls April 25, 2019

Hello,

we have problems starting Jira after installation on a new Ubuntu 18.04 Server:

 

java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:717) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.startWorkers(CaesiumSchedulerService.java:288) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.startImpl(CaesiumSchedulerService.java:272) at com.atlassian.jira.scheduler.JiraCaesiumSchedulerService.startImpl(JiraCaesiumSchedulerService.java:33) at com.atlassian.scheduler.core.AbstractSchedulerService.start(AbstractSchedulerService.java:161) at com.atlassian.jira.scheduler.JiraSchedulerLauncher.proceedIfAllClear(JiraSchedulerLauncher.java:36) at com.atlassian.jira.scheduler.JiraSchedulerLauncher.start(JiraSchedulerLauncher.java:22) at com.atlassian.jira.startup.ActiveServicesLauncher.start(ActiveServicesLauncher.java:56) at com.atlassian.jira.startup.DefaultJiraLauncher.postDBActivated(DefaultJiraLauncher.java:172) at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$2(DefaultJiraLauncher.java:146) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:301) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:196) at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:137) at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(DefaultJiraLauncher.java:104) at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:31) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:102) at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(LauncherContextListener.java:154) at java.lang.Thread.run(Thread.java:748)

 

I installed Jira as mentioned here:
https://confluence.atlassian.com/adminjiraserver/installing-jira-applications-on-linux-938846841.html

The machine has 12GB Ram, there is no other Service installed.

I could send you the full log, but unfortunally your form doesn't have a file upload. Maybe I can send it afterwards?

Kind regards,

Thomas Liepe

 

2 answers

0 votes
Jimmy Van (GLiNTECH)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 25, 2019

Check also your heap size in <JIRA_INSTALL>/bin/setenv.sh

Even though the VM has 12GB, the Jira JVM may not be told to utilise all this memory. Default is 1GB I think

Jimmy Van (GLiNTECH)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 25, 2019

And if you need support from Atlassian, try https://support.atlassian.com/contact/

Michael Kohls April 26, 2019 edited

Hi Jimmy,

thanks for your answer.

I already set the heap size temporarly to 8GB. Default was 2.

When the error occurs, top shows me, that java uses ~1,5GB, so the limit is far from reached.

 

We only have a starter-license. Unfortunately, Atlassian doesn't gives support for this.

0 votes
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 25, 2019

@Michael Kohls 

 

Can you check how the limits (number of procs, number of files) are configured for the suer running jira / system in general

 

see also

https://confluence.atlassian.com/jirakb/jira-applications-crash-due-to-outofmemoryerror-unable-to-create-new-native-thread-224397455.html

Cheers

Kurt

Michael Kohls April 26, 2019

Hi,
thanks for your answer.

 

Unfortunatelly, I already tried this. Rebooted the machine after setting the settings. No success.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events