run_quarkus.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # JFR: -XX:+FlightRecorder -XX:StartFlightRecording=duration=60s,filename=/quarkus/trace.jfr
  3. # and use docker cp to read it
  4. # PROFILING: -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints
  5. # DEBUG: -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
  6. # Consider using -Dquarkus.http.io-threads=$((`grep --count ^processor /proc/cpuinfo`)) \
  7. JAVA_OPTIONS="-server \
  8. -Dquarkus.vertx.prefer-native-transport=true \
  9. -XX:-StackTraceInThrowable \
  10. -Dquarkus.http.accept-backlog=-1 \
  11. -Dio.netty.buffer.checkBounds=false \
  12. -Dio.netty.buffer.checkAccessible=false \
  13. -Djava.util.logging.manager=org.jboss.logmanager.LogManager \
  14. -Dquarkus.http.idle-timeout=0 \
  15. -XX:+UseNUMA \
  16. -XX:+UseParallelGC \
  17. -Djava.lang.Integer.IntegerCache.high=10000 \
  18. -Dvertx.disableURIValidation=true \
  19. -Dvertx.disableHttpHeadersValidation=true \
  20. -Dvertx.disableMetrics=true \
  21. -Dvertx.disableH2c=true \
  22. -Dvertx.disableWebsockets=true \
  23. -Dvertx.flashPolicyHandler=false \
  24. -Dvertx.threadChecks=false \
  25. -Dvertx.disableContextTimings=true \
  26. -Dhibernate.allow_update_outside_transaction=true \
  27. -Dio.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle.I_HAVE_CHECKED_EVERYTHING=true \
  28. -Djboss.threads.eqe.statistics=false \
  29. -Dmutiny.disableCallBackDecorators=true \
  30. $@"
  31. java $JAVA_OPTIONS -jar quarkus-run.jar