there's not enought memory to perform the requrested operation.

问题:

there's not enought memory to perform the requrested operation.

原因:idea内存溢出

解决方案:

-Xms512m
-Xmx2048m
-XX:MaxPermSize=2012m
-XX:ReservedCodeCacheSize=2040m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da
-Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Dawt.useSystemAAFontSettings=lcd

把上面的配置信息复制一下,位置如图:there's not enought memory to perform the requrested operation.
启动项目,OK。

上一篇:yarn 错误There appears to be trouble with your network connection. Retrying


下一篇:HDU 1102 Constructing Roads