Comments on: Java HTTP Server and Virtual Threads https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/ Java, Spring, Kotlin, microservices, Kubernetes, containers Fri, 19 Jan 2024 12:11:08 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-2265 Fri, 19 Jan 2024 12:11:08 +0000 https://piotrminkowski.com/?p=13822#comment-2265 In reply to robert engels.

Interesting info. Thanks for the tip!

]]>
By: robert engels https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-2228 Wed, 03 Jan 2024 17:07:19 +0000 https://piotrminkowski.com/?p=13822#comment-2228 You might be interested in github.com/robaho/httpserver which is a “fork” of the jdk httpserver that adds websocket support, and cleans up the internals to be fully virtual thread aware.

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1776 Sun, 01 Jan 2023 17:57:36 +0000 https://piotrminkowski.com/?p=13822#comment-1776 In reply to luketn.

There were no big differences in avg time response

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1775 Sun, 01 Jan 2023 17:56:41 +0000 https://piotrminkowski.com/?p=13822#comment-1775 In reply to DZOLO.

8vCPU visible by Java (4CPU)

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1774 Sun, 01 Jan 2023 17:55:13 +0000 https://piotrminkowski.com/?p=13822#comment-1774 In reply to orubel.

Yes, this is an experiment, not smth you run on production. You can as well set a virtual thread executor on Tomcat

]]>
By: orubel https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1770 Tue, 27 Dec 2022 23:51:58 +0000 https://piotrminkowski.com/?p=13822#comment-1770 Ok, so creating an HTTP server vs a tried and true HTTP server like Tomcat for production are TWO ENTIRELY different things. First Tomcat maintains sessions, threads, SSL, headers, etc. There is alot going on in the background that I just dont want to have to mess with that is going to slow down that response you have.

Its a fun ‘experiment’ but it is NOT one you will ever run in production.

]]>
By: DZOLO https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1764 Fri, 23 Dec 2022 07:54:21 +0000 https://piotrminkowski.com/?p=13822#comment-1764 Hi, thank you for the benchmark. Could you please specify the number of CPUs used for test? The whole results are affected by it since you have chosen to use a pool of 200 threads. For a common CPU (8 cores) such pool size would cause the bad result for it.

]]>
By: luketn https://piotrminkowski.com/2022/12/22/java-http-server-and-virtual-threads/#comment-1763 Thu, 22 Dec 2022 21:12:14 +0000 https://piotrminkowski.com/?p=13822#comment-1763 can you also share the siege output comparing regular and virtual thread performance?

]]>