setup.sh 1014 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' src/main/conf/config.json
  3. fw_depends java maven
  4. mvn clean package
  5. java \
  6. -server \
  7. -XX:+UseNUMA \
  8. -XX:+UseParallelGC \
  9. -XX:+AggressiveOpts \
  10. -Dvertx.disableMetrics=true \
  11. -Dvertx.disableH2c=true \
  12. -Dvertx.disableWebsockets=true \
  13. -Dvertx.flashPolicyHandler=false \
  14. -Dvertx.threadChecks=false \
  15. -Dvertx.disableContextTimings=true \
  16. -Dvertx.disableTCCL=true \
  17. -jar \
  18. target/vertx-web-benchmark-3.5.0-fat.jar \
  19. --instances \
  20. `grep --count ^processor /proc/cpuinfo` \
  21. --conf \
  22. src/main/conf/config.json &