Error occurred during initialization of VM Too small initial heap

Timothy Harris January 16, 2015

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

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2015

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

Timothy Harris January 16, 2015

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?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2015

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

Timothy Harris January 16, 2015

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

Sonja Athing September 10, 2019

Thank you @Nic Brough -Adaptavist- 

These assignments worked:

JVM_MINIMUM_MEMORY="2048m"
JVM_MAXIMUM_MEMORY="4096m"

 

These did not :

JVM_MINIMUM_MEMORY="2048"
JVM_MAXIMUM_MEMORY="4096"

In file

/opt/atlassian/jira/bin/setenv.sh

Suggest an answer

Log in or Sign up to answer