Hi, My client code spawns n number of threads, In each thread I send 1000 requests in a loop using a HttpUrlConnection handle. I am requesting the same server. Same socket - I have not done anything to force a single socket to be used, but I believe http 1.1 tries to use the same persistent tcp connection to send the requests.
Upon checking with ethereal - I find that the requests are not going over a single connection, but over four or five. Does this impact to a great extent ? But then, I find some performance drop even when I ran my client, with 10 threads each and from two-three different machines. Thanks and Regards, Subramanyam -----Original Message----- From: Morten Steffensen [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 8:31 PM To: [email protected] Subject: Re: [Axis2] Multithreaded client, performance degradation. Out of interest - are you requesting the same server. And if so, is the requests using the same socket ? Med venlig hilsen / Kind regards, Morten Steffensen Emercos ApS http://www.emercos.com Ramanathan, Subramanyam skrev: > Hi, > > I've been running a few performance tests on Axis2 to compare it with Axis1. > I've found that when I post requests using a multithreaded http client [ that > spawns multiple threads each sending a certain number of requests ] , the > performance of Axis2 seems to degrade, whereas that of Axis1 seems to be > relatively stable when tested using the same client. > > Here are the figures I have got. Each thread sends 1000 requests. > I have measured throughput by measuring the time taken for all the threads to > finish and then calculating requests per sec. > > > Axis2(req/sec) Axis1(req/sec) > -------------- ----------- > 10 threads - 1105.530784 545.9761944 > 20 threads - 635.3480599 556.6025772 > 30 threads - 411.2374179 550.5108726 > 40 threads - 215.8165598 570.8683581 > > > Apparently, as the number of threads increases, the performance drops in > Axis2 whereas it remains reasonably stable in Axis1. > Can someone tell me the reason for this, and is there any way the performance > with multiple threads in Axis2 can be made better / stabilized ? > > My Setup: > --------- > Red Hat Enterprise Linux ES release 4 > Axis2 version 1.0 > Tomcat 5.5.17 > jdk 1.5.0_04 > > > Regards, > Subramanyam > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Med venlig hilsen / Kind regards, Morten Steffensen Emercos ApS http://www.emercos.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
