1 Reply Latest reply on May 18, 2013 4:15 PM by asharma860

    Jboss server configuration

    kiran.varanasi

      We have a web application runnig on Jboss servers, which is hosted on AWS and we have also an apache server which serves as a web server and load balancing . Afew days back the user traffic is increased. Suddenly the web server is not responding, so we came up with a solution incresing the number of connections in both application server and web server. But the problem is not resolved. Suddenly applicaiton server is getting stopped. Below is our configuration. Please any one help us.

       

       

      <Connector port="8080" address="${jboss.bind.address}"   

               maxThreads="1024" maxHttpHeaderSize="8192"

               emptySessionPath="true" protocol="HTTP/1.1"

               enableLookups="false" redirectPort="8443" acceptCount="512"

               connectionTimeout="20000" disableUploadTimeout="true" />

      <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"

               emptySessionPath="true" enableLookups="false" redirectPort="8443" maxThreads="1024" />

       

       

      Following is the configuration in the apache.

       

      Timeout 120

      KeepAlive Off

      MaxKeepAliveRequests 512

      KeepAliveTimeout 5

      PidFile run/httpd.pid

       

      <IfModule prefork.c>

      StartServers       8

      MinSpareServers    5

      MaxSpareServers   20

      ServerLimit     2048

      MaxClients      2048

      MaxRequestsPerChild  10000

      </IfModule>

        • 1. Re: Jboss server configuration
          asharma860

          You have to to monitor the number of thread used by jboss using jproflier tool.I guess you are using mod_jk to mount the jboss apllication on apache web server so try with the worker MPM then prefork as prefork consumes lots of memory.

           

          Apache directive needs to be selective so MaxRequestsPerChild is 0, this is the recommended value when using mod_jk as mod_jk keeps open persistent connections. The key values in the above configuration are MaxClients.

           

          So, serverLimit*ThreadsPerChild=MaxClients handle by your apache .

           

          Say serverLimit=100

                  ThreadsPerChild=15

                  MaxClients=1500

           

          Also It depend upon amount of ram you have given to server as well so calculate the ram for each  process .So if you have one jboss server max threads server  will be 1500 for apache ,until and unless you are using any other connection like jdbc internally.

          1 of 1 people found this helpful