Wednesday, August 21, 2013

Eclipse message Error occurred during initialization of VM Incompatible initial and maximum heap sizes specified

When do we get 

Error occurred during initialization of VM 
Incompatible initial and maximum heap sizes specified 

During the Java application development using eclipse which uses huge memory i provided the -X JVM arguments in the eclipse.

When providing the -X option i gave the order wrongly like

-Xmx512m -Xms2048m


On executing the application i got the error message, the easiest way to fix is change the order as below

-Xms512m -Xmx2048m


No comments:

Post a Comment