diff options
author | halil.cakal <halil.cakal@est.tech> | 2024-09-23 11:05:16 +0100 |
---|---|---|
committer | halil.cakal <halil.cakal@est.tech> | 2024-10-09 09:37:15 +0100 |
commit | 3f9f193353a381822beef41058a9baae7e98b3ee (patch) | |
tree | b2c8b2964b7f28876b421e4ff42b0db474873f18 /docker-compose/docker-compose.yml | |
parent | e2517a8b993ed884edb251b91ce600d0a1a9fefe (diff) |
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 <halil.cakal@est.tech>
Diffstat (limited to 'docker-compose/docker-compose.yml')
-rw-r--r-- | docker-compose/docker-compose.yml | 6 |
1 files changed, 2 insertions, 4 deletions
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 |