From b95ddaa05431c926266829e66ba7c812964a74bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Tue, 25 Feb 2020 14:00:08 +0100 Subject: [PATCH] Added rules for java --- cgconfig.conf | 11 +++++++++++ cgrules.conf | 4 ++++ 2 files changed, 15 insertions(+) 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