
idea Error occurred during initialization of VM agent library failed to init: instrument
恢复 idea.vmoptions 文件即可。idea修改错vm agent导致启动报错。
·
idea修改错vm agent导致启动报错
Error occurred during initialization of VM agent library failed to init: instrument
恢复 idea.vmoptions 文件即可
Mac上该文件的位置:
~/Library/Application Support/JetBrains/IntelliJIdea2024.1/idea.vmoptions
IntelliJIdea2024.1 修改成你自己的版本
以下idea.vmoptions内容仅供参考
-Xms1024m
-Xmx4096m
-XX:ReservedCodeCacheSize=1024m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=500
-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
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
更多推荐
所有评论(0)