我正在尝试增加my idea IDE的启动内存。所以我:右击Intellij IDEA >显示包内容>内容> bin > idea.vmoptions
并将idea.vmoptions修改为:
-Xms256m
-Xmx2048m
-XX:ReservedCodeCacheSize=480m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
-Xbootclasspath/a:../lib/boot.jar我看到idea流程参数,它仍然是-Xmx768m,而不是我配置的-Xmx2048m
/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/bin/java -d64 -Djava.awt.headless=true -Didea.version==2017.2.5 -Xmx768m -Didea.maven.embedder.version=3.3.9 -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ ....
此外,我将/Applications/IntelliJ\ IDEA.app/Contents/bin/idea.vmoptions复制到/Users/wuchang/Library/Preferences/IntelliJIdea2017.2/idea.vmoptions,也没有帮助。
有人能给我一些建议吗?
我的想法版本是2017.2.5,而mac os版本是10.12.6.I,我也尝试过使用Help -> Edit Custom VM Options来修改它,也没有帮助。
发布于 2017-11-07 10:32:24
问题是为Maven导入启动了另一个进程,它的堆大小是configured elsewhere。您正在检查Maven 进程的堆大小,而不是IntelliJ IDEA进程。
https://stackoverflow.com/questions/47148848
复制相似问题