7 Replies Latest reply on Dec 20, 2011 7:07 AM by Jean-Frederic Clere

    How to configure max threads for jbossweb native apr connector (if possible)

    Aleš Bregar Newbie

      Hi,

       

      by fixing max-connections (see http://community.jboss.org/message/641746#641746) i can easily create 40k connections on 4Gb heap. I went further and was hoping of trying also performance of apr native jbossweb. I got native libs of version 2.0.10 and made it work with as7.1.0.BETA1b. But surprisingly following happens around ~10k opened connections (same app as before apr test, using async servlet contexts):

       

       

      INFO  [org.apache.tomcat.util.net.AprEndpoint] (http--10.10.8.3-81-EventPoller) Maximum number of threads (128) created for connector with address /10.10.8.3 and port 81
      

       

      while by using java based jbossweb 7.0.3:

       

       

      [org.apache.tomcat.util.net.JIoEndpoint] Maximum number of threads (2048) created for connector with address /10.10.8.3 and port 81
      

       

       

      And with apr, further connections are blocked.

      As seems to me, some configuration is possible here, but have no idea where to reach it in any of those two cases. I only can see that apr with max threads=128 behaves worse than JIO with 2048.

       

       

       

      How should this particular problem be approached?

      Thank you in advance,

      A