simply end up measuring the speed of
console output
Oleg
-Original Message-
From: Ben Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 23:40
To: 'Commons HttpClient Project'
Subject: RE: GetMethod Performance
Windows Profile attached. Any help would be appreciated
Windows
: GetMethod Performance
Ben,
The profiles obviously differ quite a bit. For instance the methods
below that consume a significant portion of the execution time on
Solaris platform take virtually no time on WinXP. Are they executed at
all? Are you sure you execute exactly the same code on both platforms
PROTECTED]
Sent: Tuesday, 17 February 2004 9:50 PM
To: Commons HttpClient Project
Subject: RE: GetMethod Performance
Hello Ben,
Sorry, I got mixed up because yesterday there was another
poster reporting performance problems when using SSL.
So forget my comment about the secure socket factory
the line
log4j.category.httpclient.wire=INFO, STDOUT to the log4j.properties and
everything is working happily now.
-Original Message-
From: Ben Wong [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 10:06 PM
To: 'Commons HttpClient Project'
Subject: RE: GetMethod Performance
Oleg
Subject: RE: GetMethod Performance
Ben,
Try the following:
(1) disable stale connections check
SimpleHttpConnectionManager connman = new SimpleHttpConnectionManager();
connman.setConnectionStaleCheckingEnabled(false);
HttpClient client = new HttpClient(connman);
http://jakarta.apache.org
Windows Profile attached. Any help would be appreciated
Windows XP on P-M 1.4
-
Flat profile of 3.44 secs (322 total ticks): main
Interpreted + native Method
7.5% 0 +24java.net.SocketInputStream.socketRead0
7.2% 0 +23
the faster crypto service provider.
cheers,
Roland
Ben Wong [EMAIL PROTECTED]
16.02.2004 23:39
Please respond to Commons HttpClient Project
To: 'Commons HttpClient Project'
[EMAIL PROTECTED]
cc:
Subject:RE: GetMethod Performance
Oleg,
Both didn't
Hi,
I have noticed significant performance difference between using
HttpClient and Socket.
I tried to use GetMethod to download a 2MB file from a Webserver sitting
in the LAN. When I do it with HttpClient, it takes around 13-15 seconds
while it will only take less than half a second with Socket.
Hi Ben,
I believe your HttpClient numbers are being inflated by one-time
initialization costs. I was able to get approximately the same numbers
with HttpClient and Socket. Please see my examples attached below:
Mike
HttpClient code:
HttpClient client = new HttpClient();
examples immediately after one
another while there was not much load on the network.
cheers,
Roland
Ben Wong [EMAIL PROTECTED]
16.02.2004 06:40
Please respond to Commons HttpClient Project
To: [EMAIL PROTECTED]
cc:
Subject:GetMethod Performance
Hi,
I
a good chance you'll find something about your
problem.
cheers,
Roland
Ben Wong [EMAIL PROTECTED]
16.02.2004 07:30
Please respond to Commons HttpClient Project
To: 'Commons HttpClient Project'
[EMAIL PROTECTED]
cc:
Subject:RE: GetMethod Performance
11 matches
Mail list logo