idea 的 vmoptions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# custom IntelliJ IDEA VM options
-server
-Xms3G
-Xmx5G
-XX:ParallelGCThreads=14
-Dfile.encoding=UTF-8
# Enable ZGC
-XX:+UnlockExperimentalVMOptions
-XX:+UseZGC
# Jetbrins toolbox
# Other optimizations
-Dkotlinx.coroutines.debug=off
-Djdk.attach.allowAttachSelf=true
-XX:+OmitStackTraceInFastThrow
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:-HeapDumpOnOutOfMemoryError
-XX:CICompilerCount=12
# Enable IDEA on JDK 17
-Djdk.module.illegalAccess.silent=true
-Dsun.java2d.metal=true
--illegal-access=permit
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.desktop/sun.font=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED
--add-opens=java.desktop/sun.lwawt=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.image=ALL-UNNAMED
--add-opens=java.desktop/sun.java2d=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.jdi/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED
--add-opens=java.base/com.sun.tools.jdi=ALL-UNNAMED
--add-exports=java.desktop/sun.font=ALL-UNNAMED
--add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED
--add-exports=java.desktop/com.apple.laf=ALL-UNNAMED
--add-exports=java.desktop/com.apple.eawt.event=ALL-UNNAMED
--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED
-XX:+IgnoreUnrecognizedVMOptions
|
参考连接:
https://gist.github.com/kenvix/7b9f8c10fffcc90978589ab12ba50d02