环境Mac OSX
Intellij Idea读取JVM参数有两处:
jps -lvm
72062 -Xms256m -Xmx1g -XX:ReservedCodeCacheSize=240m -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=/Users/momo/java_error_in_idea_%p.log -XX:HeapDumpPath=/Users/momo/java_error_in_idea.hprof -Xbootclasspath/a:../lib/boot.jar -Djb.vmOptionsFile=/Users/momo/Library/Preferences/IntelliJIdea2018.1/idea.vmoptions -Didea.java.redist=jdk-bundled -Didea.home.path=/Applications/IntelliJ IDEA.app/Contents -Didea.executable=idea -Didea.paths.selector=IntelliJIdea2018.1
本人测试修改这个参数貌似不管用:
/Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions
修改/Users/momo/Library/Preferences/IntelliJIdea2018.1/idea.vmoptions的参数管用:
idea jvm参数文件
网友评论