473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTTP keep-alive performance

Hi all,
I tried to use the HTTP keep-alive (HTTP/1.1) mechanism for an xmlrpc
server/client session. This worked fine, after I found out how to fix
the client, see:
http://mail.python.org/pipermail/pyt...il/256360.html
and also
http://mail.python.org/pipermail/pyt...ay/442541.html
Now, as I said, everything seems to work fine -- except: performance got
very bad :-(

So, I captured the TCP traffic with wireshark (both, server and client
are running on the same machine, 'http://localhost', so its not the
network). What I found out is the following:

The first remote-call is executed very fast. Then the connection is kept
open (I verified that it is closed for HTTP/1.0). But when it comes to
the second call, the performance gets bad. The TCP ACK package is sent
after ~40ms only, which took ~ < 1ms before for the first call, even for
HTTP/1.1. Why is that?

So this is a sketch of what's going on:

client server
---------- ----------
HEADER -->
<-- ACK ~1ms
CONTENT -->
<-- ACK ~1ms
<-- HEADER
ACK -- ~1ms
[...] response is submitted; connection is NOT closed [...]
HEADER -->
<-- ACK ~40ms
CONTENT -->
<-- ACK ~1ms
<-- HEADER
ACK -- ~40ms
[...] response data is submitted

It's just a rought timeline to show where the bottleneck is. Has anyone
any idea why the acknowledgement messages take sooooo long to be sent???

Manuel
Mar 4 '08 #1
0 1212

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ron | last post by:
Hello, I keep getting a runtime error with the following ado routine that I run from a VB6 app - note: I tried it with ref to mdac2.6 and mdac2.7 and mdac2.8. This worked once, but it doesn't...
6
by: Drew | last post by:
I have been trying to figure out why I am getting this message... I have an application that is 20 different ASP pages that works in sequential order (step1, step2, step3...). After each step the...
8
by: riprod | last post by:
Someone in the IIS newsgroup suggest I post this here, so sorry in advance for the cross posting. I have a Win 2003 SP1 with IIS 6 and host about 40 websites, most of them useing ASP/VB with...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
0
by: Mike Hoorens | last post by:
Hi there. This looks like a good place to get help with a problem I am having: - We have a c# windows app, which performs an HTTPWebRequest to a IIS box on Internet to retrieve an XML response....
3
by: Rajiv Das | last post by:
C# 2.0 XP SP2 In My Code, I am using HttpWebRequest to visit a particular URL. I am required to generate a snapshot image (if this request were made through say IE) and save as jpeg. About .1...
1
by: Mark Rae | last post by:
Hi, Development machine is: AMD dual-core 64-bit Athlon 4Gb RAM 2 x 160Gb SATA hard drives WinXP Pro + SP2 and all the latest patches Visual Studio.NET 2005 SQL Server 2005 developer...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
5
by: Christina | last post by:
Hello, I am using IIS 5.1 on XP Pro. I have a page with many links on it (say 'Main Page'). Clicking on any of the links in Main Page, leads to say 'Page1. My Scenario (modified to make it...
0
by: db2admin | last post by:
hello, we take full on sunday and incremental delta rest of the days everyday. i want to keep only 8 weeks of backups on TSM. i am trying to understand the meaning of parameter "keep" in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.