1. 使用visualVM查看idea的jvm参数,已经垃圾回收情况
2. 使用idea的活动监视器查看具体活动
3. 针对垃圾回收情况和 监视器情况优化jvm参数
-server
#-XX:+UseConcMarkSweepGC
-Xms1512m
-Xmx3069m
-XX:PermSize=512m
-XX:MaxPermSize=1500m
-XX:ReservedCodeCacheSize=1024m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dfile.encoding=UTF-8
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
# JIT 参数
-XX:CICompilerCount=2
-XX:TieredStopAtLevel=1
-XX:MaxInlineLevel=3
-XX:Tier4MinInvocationThreshold=100000
-XX:Tier4InvocationThreshold=110000
-XX:Tier4CompileThreshold=120000
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
-javaagent:D:\IntelliJIDEA202212\ja-netfilter-all\ja-netfilter.jar=jetbrains