From ffd5e0eb2b6bceeb27cd53321e7f3018f66d6a7e Mon Sep 17 00:00:00 2001 From: Francesco Nigro Date: Tue, 27 Jun 2023 12:36:31 +0200 Subject: [PATCH] Disable Context Propagation and useless IDLE connections Netty detection --- java_quarkus_bench/Dockerfile | 2 +- java_quarkus_bench/src/main/resources/application.properties | 3 ++- java_quarkus_native_bench/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/java_quarkus_bench/Dockerfile b/java_quarkus_bench/Dockerfile index 9e8cdb83..105d15b7 100644 --- a/java_quarkus_bench/Dockerfile +++ b/java_quarkus_bench/Dockerfile @@ -10,4 +10,4 @@ RUN /app/mvnw clean package # Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size. ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" -ENTRYPOINT java -Dquarkus.grpc.server.instances="${GRPC_SERVER_CPUS:-1}" -jar /app/target/quarkus-app/quarkus-run.jar +ENTRYPOINT java -Dquarkus.http.idle-timeout=0 -Dmutiny.disableCallBackDecorators=true -Dquarkus.grpc.server.instances="${GRPC_SERVER_CPUS:-1}" -jar /app/target/quarkus-app/quarkus-run.jar diff --git a/java_quarkus_bench/src/main/resources/application.properties b/java_quarkus_bench/src/main/resources/application.properties index d6536eeb..852833da 100644 --- a/java_quarkus_bench/src/main/resources/application.properties +++ b/java_quarkus_bench/src/main/resources/application.properties @@ -1 +1,2 @@ -quarkus.grpc.server.port=50051 \ No newline at end of file +quarkus.grpc.server.port=50051 +quarkus.arc.context-propagation.enabled=false \ No newline at end of file diff --git a/java_quarkus_native_bench/Dockerfile b/java_quarkus_native_bench/Dockerfile index c4e42583..8e663736 100644 --- a/java_quarkus_native_bench/Dockerfile +++ b/java_quarkus_native_bench/Dockerfile @@ -12,4 +12,4 @@ RUN /app/mvnw clean package -Pnative # Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size. ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" -ENTRYPOINT /app/target/java_quarkus_bench-1.0.0-SNAPSHOT-runner -Dquarkus.grpc.server.instances="${GRPC_SERVER_CPUS:-1}" +ENTRYPOINT /app/target/java_quarkus_bench-1.0.0-SNAPSHOT-runner -Dquarkus.http.idle-timeout=0 -Dmutiny.disableCallBackDecorators=true -Dquarkus.grpc.server.instances="${GRPC_SERVER_CPUS:-1}"