Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
21 lines
682 B
Plaintext
21 lines
682 B
Plaintext
## virtual threads (server.tomcat.threads.max=10)
|
|
$ curl -i localhost:8080/diag/thread
|
|
HTTP/1.1 200
|
|
Content-Type: application/json
|
|
|
|
{"thread":"VirtualThread[#N,tomcat-handler-1]/runnable@ForkJoinPool-1-worker-1","virtual":true}
|
|
|
|
$ java scripts/LoadClient.java 'http://localhost:8080/api/slow?ms=500' 200
|
|
requests=200 statuses={200=200} elapsed_ms=2154
|
|
|
|
## platform threads (server.tomcat.threads.max=10)
|
|
$ curl -i localhost:8080/diag/thread
|
|
HTTP/1.1 200
|
|
Content-Type: application/json
|
|
|
|
{"virtual":false,"thread":"Thread[#N,http-nio-8080-exec-3,5,main]"}
|
|
|
|
$ java scripts/LoadClient.java 'http://localhost:8080/api/slow?ms=500' 200
|
|
requests=200 statuses={200=200} elapsed_ms=10903
|
|
|