From 3f9f193353a381822beef41058a9baae7e98b3ee Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Mon, 23 Sep 2024 11:05:16 +0100 Subject: Fine tune JVM parameters for cps-and-ncmp - limit the total memory with 2G - set heap memory 75% of the total RAM Issue-ID: CPS-2180 Change-Id: Ia8a6c2bd40866052caba4f332ac563e1ed829212 Signed-off-by: halil.cakal --- docker-compose/docker-compose.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docker-compose') diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index fd1df38147..e7703d8d68 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -62,6 +62,7 @@ services: ONAP_OTEL_EXPORTER_ENDPOINT: http://jaeger-service:4317 POLICY_SERVICE_ENABLED: 'false' POLICY_SERVICE_DEFAULT_DECISION: 'deny from env' + JAVA_TOOL_OPTIONS: "-XX:InitialRAMPercentage=75.0 -XX:MaxRAMPercentage=75.0" ### DEBUG: Uncomment next line to enable java debugging ### DEBUG: JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 restart: unless-stopped @@ -71,12 +72,9 @@ services: ### DEBUG: For easier debugging use just 1 instance (also update docker-compose/config/nginx/nginx.conf !) replicas: 2 resources: - reservations: - cpus: '2' - memory: 2G limits: cpus: '3' - memory: 3G + memory: 2G ### DEBUG: Uncomment next 2 lines to enable java debugging (ensure 'ports' aligns with 'deploy') ### DEBUG ports: ### DEBUG - ${CPS_CORE_DEBUG_PORT:-5005}:5005 -- cgit 1.2.3-korg