Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

1、打开Eclipse软件,选择菜单栏run,在二级菜单中选择 Debug Configurations...  项,如下图所示。

Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

2、在弹出的窗口中选择 (x)=Arguments 选项卡,VM arguments 输入框中输入所需要的内存最大占用量,我这里输入的是800兆。最后点击Apply按钮即可。

Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

【附】MyEclipse的设置地址在run--->Open Run Dialog--->Arguments

上一篇:有人在用fastReport作报表时处理过字体自动缩小的问题吗,怎么做


下一篇:Spring中的mappingResources和mappingDirectoryLocations