Error occurred during initialization of VM Too small initial heap

I changed the values to 512 and 1024 respectively. 



Now JIRA will not start. Complains the heap is small. Changed the values back and still won't start with same error message.

cat /proc/meminfo shows:

MemTotal: 8063248 kB
MemFree: 5456820 kB
Buffers: 622272 kB
Cached: 1517056 kB
SwapCached: 804 kB
Active: 1300020 kB
Inactive: 873112 kB
Active(anon): 33136 kB
Inactive(anon): 668 kB
Active(file): 1266884 kB
Inactive(file): 872444 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2083376 kB

So there is enough RAM. What is going on here?

Executing - ./ -fg and I get:

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: /usr/lib64/jvm/java/jre
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/
JVMJ9GC017E -Xmx too small, must be at least 1 Mbytes
JVMJ9VM015W Initialization error for library j9gc26(2): Failed to initialize
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

1 answer

1 accepted

0 vote

You're allocating the memory in bytes - it needs Megabytes.  Try adding "m" to the end of the numbers to tell it you mean Mb

OK, didn't know that. But how did this work before? The standard values did not have this notation. Does that mean that these values are not initially used?

I don't know where you got those numbers from - I get the "m" on the end when I do a default installation

Maybe I was just blind :-) Anyways thanks for the help!

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

3,314 views 14 20
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