Setting Heapsize for Java

Hi all, I have encounter this issue "Error occurred during initialization of VM, Initial heap size set to a larger value than the maximum heap size". With the InitialHeapSize to be so huge, does that means I have to set the max to be much bigger than that?

They should be set to the same value.

I did it this way is it correct?

export JAVA_OPTS="-Xms9g -Xmx9g", and there is one place to set this "sudo vim /etc/profile".

Which should I take it as reference? Please share thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.