首先展示一下报错
lmproperly specified VM option.To fix the problem, edit your JVM optionsand remove the options that are obsolete or not supported by the currentversion of the JVM.Failed to create JVM.JVM Path: C:\Program Files\etBrains\IntelliJ IDEA2022.3.1yjbr
起初我在idea里面进行了一次调参(我嫌它内存不够用),之后重启idea就会出现上面的错误,我百度了好多的方法,基本都没什么用,无论是删C:\Users\admin\AppData\Roaming\JetBrains\IntelliJIdea2020.3 下的文件还是其他地方的idea64.exe.vmoptions,都没啥用。而且我发现idea文件的配置和上面的文件配置写的都不一样。
展示一下个人的解决方法:
我用Everything 搜索了vmoptions
找到了一个文件夹,点进去发现
这里这个名为idea.vmoptions 的文件才是我idea配置的真正文件,点进去重新修改里面的内容idea就可以正常重启了。
列一份我的idea配置内容,有需要自取。需要调参自己调一下
-Xmx2008m
-Xms128m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
祝大家早点解决问题。