有三个方法 方法1: 单独设置每个项目的虚拟机的内存大小 右键项目-run as 选择 Run Configrations,在VM arguments中加入 : -Xmx1024m -Xms1024m -XX:NewRatio=4 -XX:MaxPermSize=1024m