I got this Error when I run a java class which has an NLP library ….
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified
any idea how i can solve this error 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should note that in case of setting initial heap size bigger than maximum one, application will produce such error
-Xmsmeans initial heap size-Xmxmeans maximum heap size allowed for particular JVMjava -Xms128m MyClassjava -Xms128m -Xmx128m MyClassRead more here http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html
And useful is too, to understand those two arguments, read more here if you’re interested:
Speed tradeoff of Java’s -Xms and -Xmx options
What are the Xms and Xmx parameters when starting JVMs?