This content has been marked as final.
Show 3 replies
-
1. Re: Default max threads on HTTP connector
pjhavariotis Nov 20, 2015 4:14 AM (in response to lkrzyzanek)I think you can check the current value of maxThreads via JMX-Console.
Otherwise you can set a value for the "max-connections" attribute (if it is not set) on the web subsystem connectors.
-
2. Re: Default max threads on HTTP connector
jaysensharma Nov 20, 2015 6:53 AM (in response to lkrzyzanek)The default MAX_THREADS value is computed as following in EAP6.4 (which uses JBOSSWEB_7_5_0_FINAL )
MAX_THREADS computation for Java based connector.
512 * Runtime.getRuntime().availableProcessors()
/** * Maximum amount of worker threads. */ protected int maxThreads = (org.apache.tomcat.util.Constants.LOW_MEMORY) ? 64 : ((Constants.MAX_THREADS == -1) ? 512 * Runtime.getRuntime().availableProcessors() : Constants.MAX_THREADS);
If you do not want to use the default values then you got the right link which tell us exactly how to create an Executor and how to associate it with the connector:
-
3. Re: Default max threads on HTTP connector
lkrzyzanek Nov 20, 2015 7:12 AM (in response to jaysensharma)THank you for detailed response. It helps.