-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 這個暫時沒改