Created
April 17, 2020 06:38
-
-
Save skhatri/575f80687a33de471508e675534e6ccb to your computer and use it in GitHub Desktop.
SpringBoot - Tomcat - Netty - Jetty - Undertow - h2load script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for engine in jetty undertow tomcat reactor-netty | |
| do | |
| java -Xms512m -Xmx512m -jar scripts/docker/tmp/${engine}.jar 2>&1 >> runtime.log & | |
| sleep 30 | |
| pscount=$(pgrep -f "tmp/${engine}.jar"|wc -l) | |
| if [[ $pscount -ne 1 ]]; | |
| then | |
| echo could not find "tmp/${engine.jar}" | |
| exit 1; | |
| fi; | |
| for x in {1..3}; | |
| do | |
| h2load -c50 -m20 --duration=120 --warm-up-time=5 https://localhost:8080/todo/search 2>&1 >> $engine.log | |
| sleep 30 | |
| done; | |
| sleep 10 | |
| pkill -f "tmp/${engine}.jar" | |
| sleep 2; | |
| done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment