On Wednesday 12 January 2011 8:48:35 am Christopher Cheng wrote:
> I was stress testing a CXF client with 100 connections to SOAP server using
> JMeter. The result is that for 1 connection, it takes about 5 seconds. For
> 100 connections, it takes 30 seconds for each thread and load average is
> around 11-14

Are you using a "standalone" thing or running in tomcat or similar?

By default, I think the Jetty threadpool is 25 threads.   Thus, more than 25 
connections would require the clients to wait anyway.


> Is it a problem with CXF or is it a hardware performance problem? What
> should I do to make it better?

My SUGGESTION would be to try creating a war for it and deploying in tomcat 
and tune the tomcat pools and such up quite a bit.

> 
> The hardware:
> - Xeon E5520 x 2
> - 24GB RAM
> - CentOS 5.3
> - 64 bit jdk 1.6.0_22-b04
> - Resin 3.1
> 
> JVM options:
> -J-server
> -XX:NewSize=128m
> -XX:MaxNewSize=128m
> -XX:MaxPermSize=512m
> -XX:SurvivorRatio=5
> -Xmn1024m
> -Xss2048k</jvm-arg>
> -Xms5g
> -Xmx5g
> -XX:ParallelGCThreads=20
> -XX:+UseConcMarkSweepGC
> -XX:+UseParNewGC
> -XX:TargetSurvivorRatio=90
> -XX:MaxTenuringThreshold=31
> -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
> -Xdebug
> -Dcom.sun.management.jmxremote

All those look OK.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to