473,327 Members | 2,112 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,327 software developers and data experts.

Synchronous web request performance

We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously" (which in turn causes the lengthy wait
accessing Site A), only two pages get served at a time.
The first two take 15 seconds, the second two take 30
seconds. We thought maybe this was due to make the
eequests from the same IP address, but we tried the same
thing on four machines with four different IP addresses as
clients, and got the same results (first two transactions
take 15 seconds, second two take 30 seconds).

We tried several different things including asynchronous
web requests and it seemed to make no difference. Only two
requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these
transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

Nov 17 '05 #1
3 2078
Right, and that is why we brought up four browsers on
four different machines the second time. Yet, we still
saw only two requests being serviced at any one time.

TomR
-----Original Message-----
Part of the HTTP1.0 spec was that you can only have 2 connections to aserver in one outbound connection..

"TomR" <to******@yahoo.com> wrote in message
news:0e****************************@phx.gbl...
We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously" (which in turn causes the lengthy wait
accessing Site A), only two pages get served at a time.
The first two take 15 seconds, the second two take 30
seconds. We thought maybe this was due to make the
eequests from the same IP address, but we tried the same
thing on four machines with four different IP addresses as clients, and got the same results (first two transactions take 15 seconds, second two take 30 seconds).

We tried several different things including asynchronous
web requests and it seemed to make no difference. Only two requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

.

Nov 17 '05 #2
Hello

Try to check in machine.config
<httpRuntime> check the value for the minFreeThreads and
minFreeLocalRequestFreeThreads attributes
<processModel> maxWorkerThreads attribute

Best Regards

"TomR" <to******@yahoo.com> wrote in message
news:0e****************************@phx.gbl...
We are having problems with synchronus web request calls
blocking our ASP.NET performance. Here is the setup:
We have an aspx script on Site B with a synchronous
HttpWebRequest call to access Site A (simulating accessing
a bank credit card payment gateway). The page on Site A
currently does nothing more than wait 15 seconds before
serving a page, again simulating the potential lengthy
response from such a site.

When we open four browsers on the aspx page on Site B
"simultaneously" (which in turn causes the lengthy wait
accessing Site A), only two pages get served at a time.
The first two take 15 seconds, the second two take 30
seconds. We thought maybe this was due to make the
eequests from the same IP address, but we tried the same
thing on four machines with four different IP addresses as
clients, and got the same results (first two transactions
take 15 seconds, second two take 30 seconds).

We tried several different things including asynchronous
web requests and it seemed to make no difference. Only two
requests ever got processed at one time.

We are anticipating having to process perhaps 50 of these
transactions simultaneously, and if only two are being
processed at any given moment response time would be
horrible. I'm sure we aren't the only ones trying to do
such a thing. What might we doing wrong to cause this
behavior?

Thanks,
TomR.

11648409

Nov 17 '05 #3
Thanks for replying. Perhaps you could explain a little
more about how to set up multiple connection objects? Or,
reference to documentation would be helpful too.

TomR.
-----Original Message-----
lol - no I mean your web server can only have 2 requests for each connectionto that web service... normally, web service calls are quick, but in thiscase - they are going to hog those 2 connections.. so you should probablysetup multiple connection objects and establish a queue for however manyconnections you'd like to have open at a time..

"TomR" <to******@yahoo.com> wrote in message
news:00****************************@phx.gbl...
Right, and that is why we brought up four browsers on
four different machines the second time. Yet, we still
saw only two requests being serviced at any one time.

TomR
>-----Original Message-----
>Part of the HTTP1.0 spec was that you can only have 2

connections to a
>server in one outbound connection..
>
>"TomR" <to******@yahoo.com> wrote in message
>news:0e****************************@phx.gbl...
>> We are having problems with synchronus web request calls >> blocking our ASP.NET performance. Here is the setup:
>> We have an aspx script on Site B with a synchronous
>> HttpWebRequest call to access Site A (simulating

accessing
>> a bank credit card payment gateway). The page on Site A >> currently does nothing more than wait 15 seconds before >> serving a page, again simulating the potential lengthy >> response from such a site.
>>
>> When we open four browsers on the aspx page on Site B
>> "simultaneously" (which in turn causes the lengthy wait >> accessing Site A), only two pages get served at a time. >> The first two take 15 seconds, the second two take 30
>> seconds. We thought maybe this was due to make the
>> eequests from the same IP address, but we tried the same >> thing on four machines with four different IP addresses
as
>> clients, and got the same results (first two

transactions
>> take 15 seconds, second two take 30 seconds).
>>
>> We tried several different things including
asynchronous >> web requests and it seemed to make no difference. Only two
>> requests ever got processed at one time.
>>
>> We are anticipating having to process perhaps 50 of

these
>> transactions simultaneously, and if only two are

being >> processed at any given moment response time would be
>> horrible. I'm sure we aren't the only ones trying to do >> such a thing. What might we doing wrong to cause this
>> behavior?
>>
>> Thanks,
>> TomR.
>>
>> 11648409
>>
>
>
>.
>

.

Nov 17 '05 #4

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

Similar topics

1
by: Chris | last post by:
Hi. I have a ibrary I'm trying to use via javascript within IE. This library uses an asynchronous model where I call into a function and pass it a callback function as one of its arguments. My...
9
by: David | last post by:
Hello I'm testing the XMLHttpRequest object in Firefox and IE. The code below works well in IE and Firefox. It shows "1" when the string is a number and "0" when not. The page aspxTest.aspx only...
5
by: Jeff Weber | last post by:
First, my question: Should I use Write or BeginWrite (sync or async) to stream data to my clients over a TCPClient connection. Details: On the server I have a custom circular data buffer that...
5
by: TomR | last post by:
We are having problems with synchronus web request calls blocking our ASP.NET performance. Here is the setup: We have a php script running on Apache at Site A on the internet. This script does...
4
by: Ryan Liu | last post by:
TcpClient has a method called GetworkStream GetStream(); So in other words, there is only one stream associate with it for input and output, right? So while it is receiving, it can not send, and...
2
by: Prasad | last post by:
Hi all! I am trying to access a page through Synchronous Ajax request in mozilla firefox I could not get the response .. After the requset is sent , "onreadystatechange" function is not being...
5
by: HugeBob | last post by:
Hi All, I've got a question about Asynchronous vs Synchronous mode with the XMLHttpRequest object. What are the ramifications of using one mode vs the other? If the script uses Asynchronous...
3
by: Haroldp | last post by:
Because I need to be sure that an Http Request is finished before other requests can be done I am using a synchronous XML Http Request. I want to show the text "loading..." on the page before...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.