From 82a980cc4110ce7c7dc32fcc6835064a45c65617 Mon Sep 17 00:00:00 2001 From: pierre-maraval Date: Thu, 5 Sep 2024 10:52:09 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20:=20Modif=20niveaux=20de=20logs,=20Modif?= =?UTF-8?q?=20pourcentage=20m=C3=A9moire=20utilis=C3=A9=20par=20JVM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- src/main/resources/application-dev.properties | 2 +- src/main/resources/application-prod.properties | 6 +++++- src/main/resources/application-test.properties | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e4039f6..85506ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,4 +36,4 @@ WORKDIR /app/ COPY --from=build-image /build/target/*.jar /app/best-ppn-api.jar ENV TZ=Europe/Paris RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -ENTRYPOINT ["java","-XX:MaxRAMPercentage=95","-jar","/app/best-ppn-api.jar"] +ENTRYPOINT ["java","-XX:MaxRAMPercentage=75","-jar","/app/best-ppn-api.jar"] diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 1ef81a3..5e825fe 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -43,5 +43,5 @@ mail.ws.url= mail.ws.recipient= logging.level.root=info -logging.level.fr.abes.bestppn=debug +logging.level.fr.abes.bestppn=info logging.level.fr.abes.bestppn.service.EmailService=info \ No newline at end of file diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 49771a1..e2bec07 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -39,4 +39,8 @@ spring.sql.bacon.init.mode=never # Mailing mail.ws.url= -mail.ws.recipient= \ No newline at end of file +mail.ws.recipient= + +logging.level.root=info +logging.level.fr.abes.bestppn=info +logging.level.fr.abes.bestppn.service.EmailService=info \ No newline at end of file diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties index 9448c79..dc180f6 100644 --- a/src/main/resources/application-test.properties +++ b/src/main/resources/application-test.properties @@ -40,3 +40,7 @@ spring.sql.bacon.init.mode=never # Mailing mail.ws.url= mail.ws.recipient= + +logging.level.root=info +logging.level.fr.abes.bestppn=info +logging.level.fr.abes.bestppn.service.EmailService=info \ No newline at end of file