In vertx docs they mentioned there is a possibility to limit the number of event loop threads per vertx instance:
Instead of a single event loop, each Vertx instance maintains several event loops. By default we choose the number based on the number of available cores on the machine, but this can be overridden.
Maybe someone knows how to do that? (I need it for debugging purpose)
Vertx vertx = Vertx.vertx(new VertxOptions().setEventLoopPoolSize(1));
By default it's:
public static final int DEFAULT_EVENT_LOOP_POOL_SIZE = 2 * Runtime.getRuntime().availableProcessors();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With