Incompatible minimum and maximum heap sizes specified

Incompatible minimum and maximum heap sizes specified

If you are trying to increase JVM memory and getting exception “Incompatible minimum and maximum heap sizes specified” it means the value you set is not compatible please change it as below:

If you set initial heap size bigger than maximum heap size it will give you error. For example:

-Xms512m -Xmx256m (Will give you error)

-Xms –> Minimum
-Xmx –> Maximum

Solution: Keep it as below:

-Xms512m -Xmx512m (Increase the size if still get exception)

If are using environment variable to stetting up memory option then set as below:

Incompatible minimum and maximum heap sizes specified

Leave a Reply

Your email address will not be published. Required fields are marked *