-
Notifications
You must be signed in to change notification settings - Fork 37
/
.jvmopts
42 lines (32 loc) · 1 KB
/
.jvmopts
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
# toggle debug output
#-Dizumi.reflect.debug.macro.rtti=true
#-Dizumi.reflect.debug.macro.rtti=false
# toggle debug assertions
#-Dizumi.reflect.debug.macro.rtti.assertions=true
#-Dizumi.reflect.debug.macro.rtti.assertions=false
-Xmx8G
-XX:ReservedCodeCacheSize=256m
-XX:MaxMetaspaceSize=3G
-XX:+OmitStackTraceInFastThrow
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-server
#-Xshare:on
#-Xshare:dump
#-Xlog:class+load=info
-XX:+UseG1GC
# Enable ZGC
#-XX:+UnlockExperimentalVMOptions
#-XX:+UseZGC
# Enable Graal JIT
#-XX:+UnlockExperimentalVMOptions
#-XX:+EnableJVMCI
#-XX:+UseJVMCICompiler
# Bumping JIT inline-level increases performance of Scala code
# https://www.reddit.com/r/scala/comments/cigh0t/these_go_to_eighteen_c_jon_pretty/
# https://scalacenter.github.io/bloop/docs/performance-guide#tweak-the-java-jit
# https://twitter.com/leifwickland/status/1179419045055086595
-XX:MaxInlineLevel=18
# These seem to cause sbt import slowdown :\
#-XX:MaxInlineSize=270
#-XX:MaxTrivialSize=12