Harjot
Harjot

Reputation: 77

Error occured during initialization of VM: Could not reserve enough space for object heap

I am getting below error on starting SonarQube: Error occured during initialixation of VM: Could not reserve enough space for memory heap

Also modified wrapper.conf underSonarQube conf folder, but didn't work. Also changed java version: Java 8 to Java 7, didn't work

Upvotes: 0

Views: 3052

Answers (3)

Harjot
Harjot

Reputation: 77

Issue was with version mismatch of plugins installed in sonarqube. I deleted jars for all plugins except java. This solved the issue. I figured it out from sonar.log Thanks

Upvotes: 1

Nicola Musatti
Nicola Musatti

Reputation: 18236

You do not enough available memory to run SonarQube. Try closing some applications.

If this is not enough check whether SonarQube's startup script specifies the amount of memory required, e.g. with options like -Xms=??? -Xmx=???. These indicate roughly the minimum and maximum amount of memory Java will acquire. Note the actual values and check with the task manager if you have enough memory available.

Upvotes: 2

phani sekhar
phani sekhar

Reputation: 107

Its due to lack of memory. if you are trying that with ANT try the following

set ANT_OPTS=-XX:MaxPermSize=128m

Upvotes: 0

Related Questions