Error occurred during initialization of VM Too small initial heap

I changed the values to 512 and 1024 respectively. 

JVM_MINIMUM_MEMORY="368"
JVM_MAXIMUM_MEMORY="768"

 

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 - ./start-jira.sh -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/catalina.pid
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

Accepted Answer
0 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,043 views 2 7
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