Skip to content

Commit 9617b66

Browse files
committed
Ressurs tweaks
* Bruker -XX:MaxRAMPercentage i stedet for Xmx * Fjernet høy cpu request * Reduserte limit på minne
1 parent 63e8376 commit 9617b66

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ FROM ghcr.io/navikt/baseimages/temurin:21
22

33
COPY target/app.jar app.jar
44

5-
ENV JAVA_OPTS="-Xmx1024m \
5+
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75 \
66
-Djava.security.egd=file:/dev/./urandom \
77
-Dspring.profiles.active=nais"

nais/naiserator.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ spec:
5454
cpuThresholdPercentage: 50
5555
resources:
5656
requests:
57-
cpu: 250m
58-
memory: 256Mi
57+
memory: 128Mi
5958
limits:
60-
memory: 1024Mi
59+
memory: 512Mi

0 commit comments

Comments
 (0)