Eclipse memory settings when getting “Java Heap Space” and “Out of Memory”

前端 未结 11 800
野的像风
野的像风 2020-11-27 13:06

When trying to launch and run a flex/java project in eclipse I kept getting a \"Out of Memory Exception\" and \"Java Heap Space\" using Eclipse, Tomcat and a JRE.

Wh

11条回答
  •  遥遥无期
    2020-11-27 13:24

    -xms is the start memory (at the VM start), -xmx is the maximum memory for the VM

    • eclipse.ini : the memory for the VM running eclipse
    • jre setting : the memory for java programs run from eclipse
    • catalina.sh : the memory for your tomcat server

提交回复
热议问题