You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Cencio <ce...@gmail.com> on 2008/11/10 13:03:58 UTC

Performance bug (Maybe SAAJ?)

Hi all,

i'm was making some performance test on my application and i found some
problems stressing it. I discover that there are some problems calling the
getSOAPHeader() or getSOAPBody() (no other function tested) so i make a
servlet that:
- take the request
- build the SOAPMessage 
- take time
- call getSOAPHeader()
- take time 
- check if time diff is > 1 sec and print it.

I call this servlet with a client that run 400 thread that request the
servlet with 100 msg each (40000 in total).

With java5 (update 6 and 11) and saaj-impl-1.3.2.jar:
over 15000 messages takes more than 1 sec, often 15~20 seconds.

With java6 update 10  and saaj-impl-1.3.2.jar:
around 1500 messages takes more than 1 sec, just few times takes over 2
seconds

With java6 update 10 and saaj implementation included:
around 300 messages takes more than 1 sec, just few times takes ovre 2
seconds


Now, i didn't realize where is located the problem. I have to run my app in
machine with java5 so i need to fix it. (also 1~2 sec of java6 is a problem
will be a problem, but smaller then 15~30 of java5) 

I attach my test, so if someone want to try follow those steps:

Get the client and serlets (all jars needed are included)
- saaj-TEST-1.3.2.zip : servlet that use
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl from saaj-impl-1.3.2.jar
- java6-TEST.zip : servlet that use
com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
distributed with java6

unzip the archives, launch "ant build" and deploy the war generated under
dist folder.

go into testClient and run:
./bench.sh configMessageImpl     for the saaj test
./bench.sh configSOAPImpl     for the other one

You will get messages like this:
12:43:19,124 INFO  [STDOUT] Tempo impiegato dal metodo getSOAPHeader [32005]
970/1366

where 
[32005]  is the time token from getSOAPHeader in millisec from that thread
970 is the # of msg that takes more than 1 second until now
1366 is the # of msg processed until now

If other info are needed, just ask.

Thx for any help,
Lorenzo
http://www.nabble.com/file/p20418719/clientTest.zip clientTest.zip 
http://www.nabble.com/file/p20418719/java6-TEST.zip java6-TEST.zip 
http://www.nabble.com/file/p20418719/saaj-TEST-1.3.2.zip saaj-TEST-1.3.2.zip 
-- 
View this message in context: http://www.nabble.com/Performance-bug-%28Maybe-SAAJ-%29-tp20418719p20418719.html
Sent from the cxf-user mailing list archive at Nabble.com.