-
idea64.exe.vmoptions 如下: -Xms128m -Xmx4096m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:\tmp -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 -Dfile.encoding=UTF-8
-
run/debug configuarions 里面也加上了 -XX:+HeapDumpOnOutOfMemoryError
-
gradle.properties 也加上了 org.gradle.jvmargs=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/heapdump
上述三种方式都没有效果,没有任何的 hprof 文件生成,google 了一圈没其他办法,在此求助。