IDEA优化(windows端)
电脑配置参数
Operating System: Windows 10 专业版 64-bit (10.0, Build 19041) (19041.vb_release.191206-1406)
Processor: Intel® Core™ i7-10510U CPU @ 1.80GHz (8 CPUs), ~2.3GHz
Memory: 16384MB RAM
启动参数优化
添加路径:IDEA:help->Edit Custom VM Options
-server # 以server方式启动,会进行预处理
-XX:MetaspaceSize=512m # 元数据空间
-XX:+AlwaysPreTouch
-Xms6g # 初始堆内存
-Xmx6g # 最大堆内存与初始堆内存一样大可以避免的增大堆内存的时的性能损耗
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC # 使用G1垃圾回收器,不适用CMS来及回收器
-XX:+UseStringDeduplication
-XX:AutoBoxCacheMax=20000
-ea
-Dsun.io.useCanonCaches=false
-Dsun.awt.keepWorkingSetOnMinimize=true
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djsse.enablesSNIExtension=false
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Dfile.encoding=UTF-8
-Duser.name=qhong
Javac编译参数优化
添加路径:IDEA :File->setting->Complier->User-local build process VM option(overrides Shared option)
-server
-Xms1024m
-XX:+UseG1GC
-XX:ReservedCodeCacheSize=512m
Maven参数优化
添加路径:IDEA:File->setting->Maven->Runner->VM option
-DarchetypeCatalog=internal
-server
-Xms1024m
-Xmx1024m
-XX:+UseG1GC
-XX:ReservedCodeCacheSize=512m