"Error occurred during initialization of VM" while re-starting jira

Vinutha Vasan April 2, 2012

HI All,

I am facing below error while shuting down jira instance,

"Error occurred during initialization of VM. Could not reserve enough space for object heap."

Any Idea?

JAVA_HOME is also set properly.

Thanks,

Vinutha

1 answer

1 accepted

2 votes
Answer accepted
lrobertson39
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 2, 2012

I suspect the issue here is that you have assigned more memory for the JVM to use than is actually available on the server. Check the JVM_MINIMUM_MEMORY and JVM_MAXIMUM_MEMORY values as defined in the setenv.sh|bat file to ensure they are within an available amount of memory, also ensure JIRA_MAX_PERM_SIZE is set to about 256mb.

After you've checked these, make sure you havn't defined any that may overwrite these within a JAVA_OPTS environment variable.

As a rule, JVM_MAXIMUM_MEMORY should be set to three quarters your available memory but should not be higher than 1.5/2Gb.

Vinutha Vasan April 2, 2012

Hi Luke,

I checked the setenv.sh file and defined values are,

JVM_MINIMUM_MEMORY="1024m"
JVM_MAXIMUM_MEMORY="1024m"

JIRA_MAX_PERM_SIZE=256m

Also i am not overwriting any of these values in JAVA_OPTS environment variables.

lrobertson39
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 2, 2012

Try setting JVM_MINIMUM_MEMORY="800m" and restart

lrobertson39
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 2, 2012

What is your servers available memory?

Vinutha Vasan April 2, 2012

Sorry i forgot to mention.

Server available memory is 4.9G.

Suggest an answer

Log in or Sign up to answer