-
1. Re: How to configure max threads for jbossweb native apr connector (if possible)
ctomc Dec 17, 2011 7:29 AM (in response to kristjan273)Hi,
max-connection attribute also works for APR endpoint and should set number of max threads that you need to increase...
please try and let me know,
cheers,
tomaz
-
2. Re: How to configure max threads for jbossweb native apr connector (if possible)
kristjan273 Dec 18, 2011 9:26 AM (in response to ctomc)Hi,
@Tomaz
I have tried the first place, it is the same connector, all the time set up with 'max-connections' to 50000.
Starting without apr, I can reach some ~40k simultaneous connections (heap size 4Gb) while the same config started with apr gives me above info when reaching some ~10k connections. Also my test tool receives timeouts on opening sockets if I try to go above that count
Any idea?
-
3. Re: How to configure max threads for jbossweb native apr connector (if possible)
ctomc Dec 19, 2011 6:32 AM (in response to kristjan273)By looking at code, I would say that setting max-connections to 50000 for APR connector would be suecide, as this setting controls number of working threads. Default is 128.
More than that I don't know how to configure, maybe some guys from jboss web project can/will help you out.
-
4. Re: How to configure max threads for jbossweb native apr connector (if possible)
kristjan273 Dec 19, 2011 6:48 AM (in response to ctomc)Ok, will open the continuation of this question in jbossweb forum (http://community.jboss.org/thread/176313) and stick to jio for now.
-
5. Re: How to configure max threads for jbossweb native apr connector (if possible)
jfclere Dec 20, 2011 3:59 AM (in response to kristjan273)native uses a Poller you should need a huge number of threads to handle a huge number of connections.
max-connections is the parameter to play with usually 128 X cores is a fine value for most application that why that is default.
-
6. Re: How to configure max threads for jbossweb native apr connector (if possible)
kristjan273 Dec 20, 2011 5:19 AM (in response to jfclere)@Jean
Thank you to join this discussion. But I must admit that I don't understand your answer well. Does that mean that native has hardcoded value of the poller size(=128) which multiplies to the number of cores? And is not customizable for different number?
And other thought - If I understand correctly, native is not suitable for solving the problem of large number of open connections (eq. implementing the server push on top of async servlet 3.0), so I should stick to jio based connector?
-
7. Re: How to configure max threads for jbossweb native apr connector (if possible)
jfclere Dec 20, 2011 7:07 AM (in response to kristjan273)128 X cores is the default value, but you can use max-connections to change it.
APR doesn't need on thread per connection it jsut need one thread per active request.