解决jetty启动There is insufficient memory for the Java Runtime Environment to continue.

There is insufficient memory for the Java Runtime Environment to continue.

eclipse中运行项目问题提示信息

从上图可看出#号第一条为:没有足够的内存让Java运行时环境继续运行。

解决方法:修改Run Configurations

maven项目在代码上右键,依次点击“Run As ”-> “Run Configurations ”,在Arguments 参数中的“VM arguments: ”中填入如下值即可。

-Xms64m -Xmx128m