Find Questions…

Close ×
First time here? Check out the FAQ!

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

Vinutha Vasan asked this question · 261 karma ·

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

5025 views

One Answer:

Luke Robertson · 546 karma ·

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 · 261 karma ·

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.

Luke Robertson · 546 karma ·

What is your servers available memory?

·1 user liked this

Vinutha Vasan · 261 karma ·

Sorry i forgot to mention.

Server available memory is 4.9G.

·1 user liked this

Luke Robertson · 546 karma ·

Try setting JVM_MINIMUM_MEMORY="800m" and restart

·1 user liked this

Looking for something else?

Find Questions…

or Browse other questions tagged:

or Ask a Question