Skip to content

Commit

Permalink
Disable Context Propagation and useless IDLE connections Netty detect…
Browse files Browse the repository at this point in the history
…ion (#362)
  • Loading branch information
franz1981 authored Jun 28, 2023
1 parent 0da5bb4 commit 1c99dd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java_quarkus_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion java_quarkus_bench/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
quarkus.grpc.server.port=50051
quarkus.grpc.server.port=50051
quarkus.arc.context-propagation.enabled=false
2 changes: 1 addition & 1 deletion java_quarkus_native_bench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 1c99dd3

Please sign in to comment.