diff --git a/cgconfig.conf b/cgconfig.conf index d5c448d..eb608ec 100644 --- a/cgconfig.conf +++ b/cgconfig.conf @@ -21,3 +21,14 @@ group chromium { memory.soft_limit_in_bytes = "768M"; } } + +group java { + cpu { + cpu.shares = "2000"; + } + + memory { + memory.limit_in_bytes = "512M" + memory.soft_limit_in_bytes = "384M" + } +} diff --git a/cgrules.conf b/cgrules.conf index 9d7cb17..2215e31 100644 --- a/cgrules.conf +++ b/cgrules.conf @@ -10,3 +10,7 @@ # End of file pgrondek:/usr/bin/google-chrome cpu,memory chromium pgrondek:/home/pgrondek/bin/rambox cpu,memory chromium + +pgrondek:/home/pgrondek/.sdkman/candidates/java/current/bin/java cpu,memory java +pgrondek:/home/pgrondek/.sdkman/candidates/java/11.0.5.hs-adpt/bin/java cpu,memory java +pgrondek:/home/pgrondek/.sdkman/candidates/java/11.0.6.hs-adpt/bin/java cpu,memory java