fix: jvm opts

This commit is contained in:
s-prechtl 2025-08-05 13:10:45 +02:00
parent 6c9e0efa78
commit 4fba0fb765
2 changed files with 26 additions and 25 deletions

View file

@ -7,25 +7,25 @@
}: let }: let
inherit (lib) concatStringsSep; inherit (lib) concatStringsSep;
jvmOpts = concatStringsSep " " [ jvmOpts = concatStringsSep " " [
"-XX:+UseG1GC" "-XX:+UseG1GC"
"-XX:+ParallelRefProcEnabled" "-XX:+ParallelRefProcEnabled"
"-XX:MaxGCPauseMillis=200" "-XX:MaxGCPauseMillis=200"
"-XX:+UnlockExperimentalVMOptions" "-XX:+UnlockExperimentalVMOptions"
"-XX:+DisableExplicitGC" "-XX:+DisableExplicitGC"
"-XX:+AlwaysPreTouch" "-XX:+AlwaysPreTouch"
"-XX:G1NewSizePercent=40" "-XX:G1NewSizePercent=40"
"-XX:G1MaxNewSizePercent=50" "-XX:G1MaxNewSizePercent=50"
"-XX:G1HeapRegionSize=16M" "-XX:G1HeapRegionSize=16M"
"-XX:G1ReservePercent=15" "-XX:G1ReservePercent=15"
"-XX:G1HeapWastePercent=5" "-XX:G1HeapWastePercent=5"
"-XX:G1MixedGCCountTarget=4" "-XX:G1MixedGCCountTarget=4"
"-XX:InitiatingHeapOccupancyPercent=20" "-XX:InitiatingHeapOccupancyPercent=20"
"-XX:G1MixedGCLiveThresholdPercent=90" "-XX:G1MixedGCLiveThresholdPercent=90"
"-XX:G1RSetUpdatingPauseTimePercent=5" "-XX:G1RSetUpdatingPauseTimePercent=5"
"-XX:SurvivorRatio=32" "-XX:SurvivorRatio=32"
"-XX:+PerfDisableSharedMem" "-XX:+PerfDisableSharedMem"
"-XX:MaxTenuringThreshold=1" "-XX:MaxTenuringThreshold=1"
]; ];
key = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDBQtMQF6NpN/tPS01LRAI1yIzfTj+tNQi+TsG7+dRSsTxxv4eXJ1EQ1HV5vSAYlCwt0FjlK2ejXUqXzGzZBdd2usPBYPHiE3n2Z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llocation = "42G"; jvmMaxAllocation = "42G";
jvmInitialAllocation = "2G"; jvmInitialAllocation = "2G";
jvmPackage = pkgs.temurin-bin-17; jvmPackage = pkgs.temurin-bin-17;
jvmOpts = jvmOpts;
rsyncSSHKeys = key; rsyncSSHKeys = key;
@ -101,9 +102,10 @@ in {
sf3 = { sf3 = {
enable = true; enable = true;
jvmMaxAllocation = "42G"; jvmMaxAllocation = "24G";
jvmInitialAllocation = "2G"; jvmInitialAllocation = "2G";
jvmPackage = pkgs.openjdk8-bootstrap; jvmPackage = pkgs.openjdk8-bootstrap;
jvmOpts = jvmOpts;
rsyncSSHKeys = key; rsyncSSHKeys = key;
@ -134,7 +136,6 @@ in {
enable = false; enable = false;
wantedBy = ["timers.target"]; wantedBy = ["timers.target"];
after = ["mc-aged.service"]; after = ["mc-aged.service"];
jvmOpts = jvmOpts;
timerConfig = { timerConfig = {
#OnCalendar = "hourly"; # Change this as needed #OnCalendar = "hourly"; # Change this as needed
OnCalendar = "*:0/15"; # Every 15 minutes OnCalendar = "*:0/15"; # Every 15 minutes

View file

@ -5,12 +5,12 @@
... ...
}: { }: {
imports = [ imports = [
inputs.home-manager.darwinModules.home-manager inputs.home-manager.darwinModules.home-manager
]; ];
system.primaryUser = "ichlebemietfreiindeinemapfel"; system.primaryUser = "ichlebemietfreiindeinemapfel";
users.users.ichlebemietfreiindeinemapfel = { users.users.ichlebemietfreiindeinemapfel = {
home = "/Users/ichlebemietfreiindeinemapfel"; home = "/Users/ichlebemietfreiindeinemapfel";
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty