Skip to content

Max Connections

For better throughput and better performance with high load the following properties can be adjusted:

Wildfly:

edit standalone.xml

set task-max-threads to 128*cpuCount instead default value [https://docs.wildfly.org/24/wildscribe/subsystem/io/worker/index.html]

the value should be 256 for 2 cpu

set io-threads to 8*cpuCount instead default value [https://docs.wildfly.org/24/wildscribe/subsystem/io/worker/index.html]

the value should be 16 for 2 cpu

    <subsystem xmlns="urn:jboss:domain:io:3.0">
        <worker name="default" task-max-threads="256 io-threads="16"/>
        <buffer-pool name="default"/>
    </subsystem>