How to improve the time of response of the Gatein?
eliasbg May 24, 2010 12:34 AMHello 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
- <mbean code="org.jboss.util.threadpool.BasicThreadPool"
- name="jboss.system:service=ThreadPool">
- <attribute name="Name">JBoss System Threads</attribute>
- <attribute name="ThreadGroupName">System Threads</attribute>
- <attribute name="KeepAliveTime">60000</attribute>
- <attribute name="MaximumPoolSize">10</attribute>
- <attribute name="MaximumQueueSize">1000</attribute>
- <attribute name="BlockingMode">run</attribute>
- </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.
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 EnvironmentFree 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 | ||||||
---|---|---|---|---|---|---|
Stage | Time | B Sent | B Received | Client | V. Host | Request |
K | 152086 ms | ? | ? | 192.168.250.1 | ? | ? |
K | 14016 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 62041 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 74047 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 2871 ms | ? | ? | 201.230.237.187 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 17239 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 65269 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 53260 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 16776 ms | ? | ? | 66.249.65.170 | ? | ? |
K | 8016 ms | ? | ? | 192.168.250.1 | ? | ? |
K | 2013 ms | ? | ? | 192.168.250.1 | ? | ? |
K | 11239 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 23245 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 71274 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 5238 ms | ? | ? | 192.168.250.1 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 38033 ms | ? | ? | 192.168.250.1 | ? | ? |
K | 1896 ms | ? | ? | 201.230.237.187 | ? | ? |
K | 2897 ms | ? | ? | 201.230.237.187 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
S | 9 ms | 0 KB | 0 KB | 201.230.237.187 | test.intralot.com.pe | GET /status HTTP/1.1 |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
K | 2983 ms | ? | ? | 201.230.237.187 | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |
R | ? | ? | ? | ? | ? | ? |