From ca0a291207b70a3b4460f1dca5646a9194fbd3f3 Mon Sep 17 00:00:00 2001 From: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:29:12 +0530 Subject: [PATCH 1/3] Perform optimization for JVM argument [MOSIP-44752] Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- helm/biosdk-service/values.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/biosdk-service/values.yaml b/helm/biosdk-service/values.yaml index 8e27fbb..4b0aee4 100644 --- a/helm/biosdk-service/values.yaml +++ b/helm/biosdk-service/values.yaml @@ -113,17 +113,17 @@ resources: # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. limits: - cpu: 2000m + cpu: 1600m memory: 5000Mi requests: - cpu: 2000m - memory: 5000Mi + cpu: 800m + memory: 2500Mi additionalResources: ## Specify any JAVA_OPTS string here. These typically will be specified in conjunction with above resources ## Example: java_opts: "-Xms500M -Xmx500M" javaOpts: >- -XX:+UseZGC -XX:+ZGenerational -XX:+ZProactive - -Xms3000m -Xmx3000m -XX:SoftMaxHeapSize=2500m + -Xms1900m -Xmx3300m -XX:SoftMaxHeapSize=2500m -XX:ActiveProcessorCount=2 -XX:+UseContainerSupport -XX:MaxMetaspaceSize=400m -XX:MetaspaceSize=100m -XX:ReservedCodeCacheSize=150m -XX:InitialCodeCacheSize=37m From 7604998805812345adb1cc319a8676d76400cae5 Mon Sep 17 00:00:00 2001 From: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Date: Tue, 7 Apr 2026 15:41:37 +0530 Subject: [PATCH 2/3] Update values.yaml Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- helm/biosdk-service/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/biosdk-service/values.yaml b/helm/biosdk-service/values.yaml index 4b0aee4..126420c 100644 --- a/helm/biosdk-service/values.yaml +++ b/helm/biosdk-service/values.yaml @@ -123,10 +123,10 @@ additionalResources: ## Example: java_opts: "-Xms500M -Xmx500M" javaOpts: >- -XX:+UseZGC -XX:+ZGenerational -XX:+ZProactive - -Xms1900m -Xmx3300m -XX:SoftMaxHeapSize=2500m + -Xms4050m -Xmx4050m -XX:SoftMaxHeapSize=3550m -XX:ActiveProcessorCount=2 -XX:+UseContainerSupport - -XX:MaxMetaspaceSize=400m -XX:MetaspaceSize=100m - -XX:ReservedCodeCacheSize=150m -XX:InitialCodeCacheSize=37m + -XX:MaxMetaspaceSize=300m -XX:MetaspaceSize=160m + -XX:ReservedCodeCacheSize=192m -XX:InitialCodeCacheSize=64m -XX:+UseCodeCacheFlushing -XX:+ExitOnOutOfMemoryError ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container ## Clamav container already runs as 'mosip' user, so we may not need to enable this From c7420e5e44c97b6b92681dc5b81da8b8fcb7d2ae Mon Sep 17 00:00:00 2001 From: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Date: Tue, 7 Apr 2026 17:28:24 +0530 Subject: [PATCH 3/3] Update values.yaml Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- helm/biosdk-service/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/biosdk-service/values.yaml b/helm/biosdk-service/values.yaml index 126420c..9b28710 100644 --- a/helm/biosdk-service/values.yaml +++ b/helm/biosdk-service/values.yaml @@ -123,7 +123,7 @@ additionalResources: ## Example: java_opts: "-Xms500M -Xmx500M" javaOpts: >- -XX:+UseZGC -XX:+ZGenerational -XX:+ZProactive - -Xms4050m -Xmx4050m -XX:SoftMaxHeapSize=3550m + -Xms1875m -Xmx4050m -XX:SoftMaxHeapSize=3550m -XX:ActiveProcessorCount=2 -XX:+UseContainerSupport -XX:MaxMetaspaceSize=300m -XX:MetaspaceSize=160m -XX:ReservedCodeCacheSize=192m -XX:InitialCodeCacheSize=64m