This is a small test suite for running Virtual Threads on the modern Java 21 and Spring Boot 3.2
mvn clean install
./target/gatling/virtualthreadssimulation-*
Please check the application.properties
:
This is the default config with Virtual Threads from the Spring Boot config:
spring.threads.virtual.enabled=true
spring.threads.virtual.enabled.manually=false
This is the config for manually tuned threads:
spring.threads.virtual.enabled=false
spring.threads.virtual.enabled.manually=true
This is the config for enabling the simple platform threads:
spring.threads.virtual.enabled=false
spring.threads.virtual.enabled.manually=false
./src/test/scala/gatling/basic/VirtualThreadSimulation.scala
./src/test/resources/gatling.conf
You need to install:
- Java 21 (tested on Liberica JDK 21.0.1 LTS)
- Maven (tested on the version 3.9.6)
Internally it uses:
- Spring Boot 3.2
- Gatling 3.9
- Scala 2.13
- You don't need to install any of these libs
I got the initial idea on how to run Gatling tests from this repo. Thank you, @amithimani!