fail to start jira because to insuffecient memory Edited

Hi,

i failed to start jira. when i use ./start-jira.sh as jira user, then  console show 

Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

 

but i use root@processengine:~# tail -f /opt/atlassian/jira/logs/catalina.out, then below meaasge come and nothing more....no more error or anothing..just hang..

 

Database configuration OK

___ Database Configuration _________________

Loading entityengine.xml from : file:/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/entityengine.xml
Entity model field type name : postgres72
Entity model schema name : public
Database Version : PostgreSQL - 9.5.9
Database Driver : PostgreSQL Native Driver - PostgreSQL 9.4.1212
Database URL : jdbc:postgresql://139.59.242.35:5432/jiradb
Database JDBC config : postgres72 jdbc:postgresql://139.59.242.35:5432/jiradb

2017-11-14 13:04:20,936 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger]

___ Starting the JIRA Plugin System _________________

2017-11-14 13:04:20,945 JIRA-Bootstrap INFO [c.a.plugin.manager.DefaultPluginManager] Plugin system earlyStartup begun

 

please help to start up jira.

Thanks

1 answer

1 accepted

Hi Saifur,

I have solved a similar problem. JIRA Install and JIRA Home must have the owner of the user jira, not root.

Please do:

chown jira:jira -R /opt/atlassian/jira/
chown jira:jira -R /var/atlassian/application-data/jira/

Run again ./start-jira.sh 

Or please provide the latest error message from the JIRA log.

Best Regards

Pavel

MoroSystems Support

Hi Pavel,

First thanks for your reply. i did what you suggest still same error.

$ ls -al
total 232
drwxr-xr-x 15 jira jira 4096 Nov 14 05:45 .
drwxr-xr-x 3 root root 4096 Nov 14 05:42 ..
drwxr-xr-x 17 jira jira 4096 Nov 14 05:43 atlassian-jira
drwxr-xr-x 3 jira jira 4096 Nov 14 12:50 bin
drwxr-xr-x 3 jira jira 4096 Nov 14 12:42 conf
drwxr-xr-x 2 jira jira 4096 Nov 14 05:43 external-source
drwxr-xr-x 3 jira jira 4096 Nov 14 05:45 .install4j
-rw-r--r-- 1 jira jira 85231 Nov 14 05:45 install.reg
drwxr-xr-x 4 jira jira 4096 Nov 14 05:42 jre
drwxr-xr-x 2 jira jira 4096 Nov 14 05:43 lib
drwxr-xr-x 2 jira jira 69632 Nov 14 05:43 licenses
drwx------ 2 jira jira 4096 Nov 14 16:07 logs
-rw-r--r-- 1 jira jira 1774 Oct 31 10:02 NOTICE
-rw-r--r-- 1 jira jira 3825 Oct 31 10:02 README.html
-rw-r--r-- 1 jira jira 2089 Oct 31 10:02 README.txt
drwx------ 2 jira jira 4096 Nov 14 05:43 temp
drwxr-xr-x 2 jira jira 4096 Nov 14 05:43 tomcat-docs
-rwx------ 1 jira jira 11200 Oct 31 10:04 uninstall
drwxr-xr-x 2 jira jira 4096 Oct 31 10:04 webapps
drwx------ 3 jira jira 4096 Nov 14 16:07 work

 

$ ls -al
total 40
drwx------ 9 jira jira 4096 Nov 14 12:55 .
drwxr-xr-x 3 jira jira 4096 Nov 12 10:31 ..
drwx------ 4 jira jira 4096 Nov 14 05:09 caches
drwx------ 3 jira jira 4096 Nov 12 10:33 data
-rwx------ 1 jira jira 1058 Nov 13 16:13 dbconfig.xml
drwx------ 2 jira jira 4096 Nov 12 10:33 export
drwx------ 4 jira jira 4096 Nov 12 10:33 import
-rw-r----- 1 jira jira 0 Nov 14 16:07 .jira-home.lock
drwx------ 2 jira jira 4096 Nov 12 10:35 log
drwx------ 6 jira jira 4096 Nov 14 05:10 plugins
drwx------ 3 jira jira 4096 Nov 12 10:33 tmp

 

Error

------ 

2017-11-14 16:08:14,255 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger]

___ Starting the JIRA Plugin System _________________

2017-11-14 16:08:14,265 JIRA-Bootstrap INFO [c.a.plugin.manager.DefaultPluginManager] Plugin system earlyStartup begun

 

Thanks

Saifur

Hi Saifur,

I do not see any error in your log:

2017-11-14 16:08:14,255 JIRA-Bootstrap INFO [c.a.jira.startup.JiraStartupLogger]

___ Starting the JIRA Plugin System _________________

2017-11-14 16:08:14,265 JIRA-Bootstrap INFO [c.a.plugin.manager.DefaultPluginManager] Plugin system earlyStartup begun

 This is a normal log at startup JIRA.

Start JIRA takes some time. If you let JIRA run for some time, does an error appear in the log?

Does a GUI error occur (a problem visible in a web browser)?

Please look at the catalina logo.out, which is in the <<JIRA Install folder>> /logs/catalina.out

Maybe an article can help Troubleshooting JIRA Startup Failed Error

Thanks

Pavel

Hi Pavel,

i tried to start adding -fg...show memory allocation problem...please suggest.

root@processengine:/opt/atlassian/jira/bin# ./start-jira.sh -fg
executing using dedicated user: jira
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.

OMMMMZ. .,NMMMN~
.IMMMMMM. .NMMMN. .MMMMMN,
,MMMMMM$..3MD..ZMMMMMM.
=NMMMMMM,. .,MMMMMMD.
.MMMMMMMM8MMMMMMM,
.ONMMMMMMMMMMZ.
,NMMMMMMM8.
.:,.$MMMMMMM
.IMMMM..NMMMMMD.
.8MMMMM: :NMMMMN.
.MMMMMM. .MMMMM~.
.MMMMMN .MMMMM?.

Atlassian JIRA
Version : 7.5.2


If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d0000000, 134217728, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 134217728 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/atlassian/jira/bin/hs_err_pid19997.log
root@processengine:/opt/atlassian/jira/bin#

Hi,

Thank you for providing more detailed information. Based on this, it looks like a memory allocation problem for JVM.

Please see the article JIRA Crashes due to Insufficient Memory for JRE to Continue.

Please, let me know

Pavel

MoroSystems Support

Hi Pavel,

i am using VM in dorplet with fe memory...

root@processengine:/opt/atlassian/jira/bin# free -m
total used free shared buff/cache available
Mem: 488 48 113 18 326 394
Swap: 0 0 0

 

and memory configuration is like below:

JVM_MINIMUM_MEMORY="384m"
JVM_MAXIMUM_MEMORY="768m"

 

Thanks

OK,

A similar case has been dealt with in this thread https://community.atlassian.com/t5/Answers-Developer-Questions/Install-Jira-on-server-error-Cannot-allocate-memory/qaq-p/504424

Please look at Justin Alex's reply [ServiceRocket], referring to the setup manual.

Thank's

Pavel

Hi Pavel,

 

firstly thanks you so much. i solved this problem by adding swap pertition. i just follow this link to add swap pertition.

https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

Thanks again

Hi Saifur,

Your welcome. Thanks for the info.

Pavel

Nice work, Pavel!

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 ...

2,760 views 11 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