Open walioul opened 2 years ago
Hi, @walioul.
There are several options to change the number of workers in launcher:
http-server.properties
to the class path with property workers=8
.-Dconfig.workers=8
MultithreadedHttpServerLauncher
, you can override the Launcher#getOverrideModule
method and provide your own module with provided Config
(similar to the MultithreadedHttpServerLauncher#config()
method, but with the default number of workers set to 8).Those predefined launchers that you can find in ActiveJ are for demonstration purposes. For production code, we recommend that you write your own launchers using predefined ones for reference.
How to increase the number of the thread pool from 4 to 8 when using MultithreadedHttpServerLauncher?
Thanks in advance.