java heap space eclipse

来源:互联网 发布:ubuntu命令行运行exe 编辑:程序博客网 时间:2024/06/05 03:57

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

3种方法:

  • eclipse.ini : the memory for the VM running eclipse            eclipse安装目录下eclipse.ini中 修改成-Xms800m   -Xmx800m (ps:如果这步改完ok了,就不需要第二步了,本人是靠这个就解决了)
  • jre setting : the memory for java programs run from eclipse    修改步骤window->preferences->java->installed JREs->edit-default  VM arguments->-Xmx1024M
  • catalina.sh : the memory for your tomcat server   这个暂时没改
原创粉丝点击