commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From damien benoist <damien_beno...@yahoo.com>
Subject [httpclient] java 1.4.2 / Solaris 5.8 / multiple threads http/io performance
Date Thu, 03 Nov 2005 12:41:19 GMT
Hello,

I created a thread on sun's java forum which is
related with HTTP.
It can be found here:

http://forum.java.sun.com/thread.jspa?threadID=679026

Maybe some httpclient users experience the same pb.
And maybe someone here has a solution...

Thanks for your help.

Here is the text of thread:

Setup:
- SunOS xxxxx 5.8 Generic_108528-12 sun4u sparc
SUNW,UltraAX-i2
- java 1.4.1-b21 and 1.4.2_09
- About 40 threads making http requests.
- Each thread is created every "few" minutes
(generally 5, 10, or 15)
and sequentially makes between 1 and 10 HTTP requests.
- 1 thread is set to make its requests every minute.
- All requests are made through a proxy (the same for
all)

The time spent to process a request is longer with
java 1.4.2
than with 1.4.1.

For one day on a given HTTP request in the thread
launched every minute,
I get the following results:
(time spent in the HTTP APIs)

-> HttpUrlConnection (sun)
        -> java 1.4.1   15% > 100ms
        -> java 1.4.2   31% > 100ms
-> HttpClient sun compatible interface
(www.innovation.ch)
        -> java 1.4.1   19% > 100ms
        -> java 1.4.2   33% > 100ms

-> HttpClient (www.innovation.ch)
        -> java 1.4.1   16% > 100ms
        -> java 1.4.2   35% > 100ms

-> HttpClient (Jakarta)
        -> java 1.4.1   15% > 100ms
        -> java 1.4.2   35% > 100ms

Obviously this problem is not related to the HTTP APIs
but rather to the JVM.
I guess this is a GC or java IO issue.
I've tried several jvm options but got nothing better.
Is there a way to swith 1.4.2 back to 1.4.1 behaviour
for GC and IO?
Am I missing something?

Thanks for your help.




		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message