0 Replies Latest reply on May 24, 2010 12:34 AM by eliasbg

    How to improve the time of response of the Gatein?

    eliasbg

      Hello friends of the forum, already I am finishing my portal in gatein for a company but I notice that the time of response is very slow.
       
      What must I do to improve it?

      Someone that I have applied

      Lots  of Requests ?  check JBoss thread pool

       

      JBoss thread pool is defined into conf/jboss-service.xml

      1. <mbean code="org.jboss.util.threadpool.BasicThreadPool" 
      2.    name="jboss.system:service=ThreadPool"> 
      3.    <attribute name="Name">JBoss System Threads</attribute> 
      4.    <attribute name="ThreadGroupName">System Threads</attribute> 
      5.    <attribute name="KeepAliveTime">60000</attribute> 
      6.    <attribute name="MaximumPoolSize">10</attribute> 
      7.    <attribute name="MaximumQueueSize">1000</attribute> 
      8.    <attribute name="BlockingMode">run</attribute> 
      9. </mbean> 

      For most applications this defaults will just work well, however if you   are running an application with issues lots of requests to jboss (such   as EJB invocations) then monitor your thread pool. Open the Web  Console  and look for the MBean jboss.system:service=ThreadPool.

       

      jboss tuning

      Start a monitor on the QueueSize  parameter. Have you got a QueueSize which reaches MaximumPoolSize ? then probably  you need to set a higher MaximumPoolSize pool size  attribute

       

       

      Set -Xms  and -Xmx to the same value

       

      By default, the virtual machine grows or  shrinks the heap at each collection to try to keep the proportion of  free space to live objects at each collection within a specific range.

      Setting -Xms and -Xmx to the same value. This  increase predictability by removing the most important sizing decision  from the virtual machine.

       

       

      Information of the server:

       

       

      URL: http://test.intralot.com.pe/portal/public/Intralot/

       

      Hardware HP - Processor XEON 2.8 1 Socket, 2GB RAM

       

       

      JVM - Hardware

      Hardware

      #CPU: 4

      OS: Linux  2.6.18-164.el5xen (i386)

      JVM Environment

      Free Memory: 224  MB

      Max Memory: 1004  MB

      Total Memory: 1004  MB

      #Threads: 212

      JVM Version: 11.0-b15  (Sun Microsystems Inc.)

      JVM Name: Java  HotSpot(TM) Server VM

      JVM

      Free memory: 197.56 MB
      Total  memory: 1013.12 MB
      Max memory: 1013.12 MB

       

       

      ajp-192.168.250.23-8009

      Max threads: 200
      Current  thread count: 60
      Current thread busy: 20
      Max  processing time: 780142 ms
      Processing time: 55430.227 s
      Request count: 73141
      Error  count: 2958
      Bytes received: 0.06 MB
      Bytes  sent: 715.70 MB

      ajp-192.168.250.23-8009
      StageTimeB SentB  ReceivedClientV. HostRequest
      K152086 ms??192.168.250.1??
      K14016 ms??192.168.250.1??
      R??????
      K62041 ms??192.168.250.1??
      R??????
      R??????
      R??????
      K74047 ms??192.168.250.1??
      R??????
      K2871 ms??201.230.237.187??
      R??????
      K17239 ms??192.168.250.1??
      R??????
      R??????
      K65269 ms??192.168.250.1??
      R??????
      R??????
      R??????
      R??????
      R??????
      R??????
      R??????
      R??????
      K53260 ms??192.168.250.1??
      R??????
      K16776 ms??66.249.65.170??
      K8016 ms??192.168.250.1??
      K2013 ms??192.168.250.1??
      K11239 ms??192.168.250.1??
      R??????
      R??????
      R??????
      K23245 ms??192.168.250.1??
      R??????
      R??????
      K71274 ms??192.168.250.1??
      R??????
      R??????
      R??????
      K5238 ms??192.168.250.1??
      R??????
      R??????
      R??????
      R??????
      R??????
      K38033 ms??192.168.250.1??
      K1896 ms??201.230.237.187??
      K2897 ms??201.230.237.187??
      R??????
      R??????
      R??????
      S9 ms0  KB0 KB201.230.237.187test.intralot.com.peGET /status HTTP/1.1
      R??????
      R??????
      R??????
      R??????
      K2983 ms??201.230.237.187??
      R??????
      R??????
      R??????