473,382 Members | 1,692 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,382 software developers and data experts.

httpwebreqeust capacity question?

I have a process that uses httpwebrequest to retrieve jpg images. The
process works fine with a few concurrent users (say 25) but as you increase
the number of users (say 75) the response times begin to increase from 6 ( 25
users) seconds to over 15 ( 50 - 75 users) seconds. I'm looking for any
known limitations that the httpwebrequest may have.
My process is written in C#.
Jul 21 '05 #1
1 1234
I posed the question to Microsoft and they gave me a solution that worked for
me. It has to do with the number of connections a web site is allowed to
have to outside sources. The default value is "2" and this was causing a
bottleneck that caused my slow response times as volume grew. The code that
was added to the web.config was
<system.net>
<connectionManagement>
<add address= "*" maxconnection = "12" />
</connectionManagement>
</system.net>

Once I added this my response times were cut in half on average with the
same load.

This article describes the details about this setting
http://msdn.microsoft.com/library/de...ce07222003.asp
"Brad" wrote:
I have a process that uses httpwebrequest to retrieve jpg images. The
process works fine with a few concurrent users (say 25) but as you increase
the number of users (say 75) the response times begin to increase from 6 ( 25
users) seconds to over 15 ( 50 - 75 users) seconds. I'm looking for any
known limitations that the httpwebrequest may have.
My process is written in C#.

Jul 21 '05 #2

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

Similar topics

9
by: Lasse Skyum | last post by:
For my renderer at each frame I'm filling a vector with CVisual* elements, sorting it, rendering the objects and then clearing the vector again. I suspect there will be an overhead if the vector...
4
by: Noo | last post by:
Hi. I've got some code that uses vectors fairly extensively and it needs to be efficient. Therefore I'm using reserve() quite a bit. However what other functions (are supposed to) change the...
8
by: Joseph Turian | last post by:
Fellow hackers, Is it possible to shrink the capacity of a vector? i.e. Without new'ing and delete'ing a vector, can one return its memory to the heap? Here's what I get under the g++...
2
by: Fred Zwarts | last post by:
There are a few things I do not understand about the vector class in de standard C++ library. The description of the resize member function says: void resize(size_type sz);Alters the size of...
1
by: Brad | last post by:
I have a process that uses httpwebrequest to retrieve jpg images. The process works fine with a few concurrent users (say 25) but as you increase the number of users (say 75) the response times...
3
by: leeps_my | last post by:
I'm thinking of using "resize-to-size" to do the trimming: aVector.resize( aVector.size( ) ); I'm wondering why Scott Meyers was recommending "swap trick" instead, since the trick involves...
12
by: Avalon1178 | last post by:
Hi, I have an application that periodically uses a std::string variable which is assigned a VERY VERY large string (15000000+ bytes long). This application is essentially a daemon, and it polls...
23
by: kid joe | last post by:
Hi all, Sorry this is a bit off-topic... but I do write a good amount of C code on my laptop so there is a link... Basically, it's a question about laptop batteries. About ten days ago, I...
7
by: Luna Moon | last post by:
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int main() { string cc(31, 'c'); string bb=cc.assign(3, 'dd');
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.