Skip to content

Commit

Permalink
Update jvm flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kciesielski committed Feb 21, 2024
1 parent dcfcb8f commit 46659ec
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -499,20 +499,10 @@ lazy val tests: ProjectMatrix = (projectMatrix in file("tests"))
)
.dependsOn(core, files, circeJson, cats)

/**
* For optimal memory usage and lower latency.
*/
lazy val perfServerJavaOptions = List(
"-Dcats.effect.tracing.mode=none",
"-Dcats.effect.tracing.exceptions.enhanced=false",
"-Dcats.effect.tracing.buffer.size=64",
"-Djava.lang.Integer.IntegerCache.high=65536",
"-Djava.net.preferIPv4Stack=true",
"-Xms32g",
"-Xmx32g",
"-XX:+AlwaysPreTouch",
"-XX:+UseZGC",
"-XX:+ZGenerational"
"-Xms16g",
"-Xmx16g",
"-XX:+AlwaysPreTouch"
)
lazy val flightRecordingJavaOpts = "-XX:StartFlightRecording=filename=recording.jfr,dumponexit=true,duration=120s"

Expand Down

0 comments on commit 46659ec

Please sign in to comment.