-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 这个暂时没改

本文介绍了如何通过三种方式调整Eclipse及其运行Java程序和Tomcat服务器的内存设置,包括修改eclipse.ini文件、Eclipse内置的JRE设置及Tomcat的启动脚本。
237

被折叠的 条评论
为什么被折叠?



