473,385 Members | 1,357 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.

Concurrent processing of ASP.NET pages

We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?

Sep 29 '06 #1
6 1749
The pages are not running serially, your requests are - and as they are from
the same client they are dealt with serially.

Fish about on google, but if I remember correctly this can happen if you
open IE and then do new window, both IE sessions are the same. Try running
IE and then run another instance of IE rather than a new IE window. You
should get a different session ID and thus non-sequential requests.

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?

Sep 29 '06 #2
Thanks John for correcting me.

I am using two different instances of IE. I mean with different
sessionID's.

Hitesh

John Timney (MVP) wrote:
The pages are not running serially, your requests are - and as they are from
the same client they are dealt with serially.

Fish about on google, but if I remember correctly this can happen if you
open IE and then do new window, both IE sessions are the same. Try running
IE and then run another instance of IE rather than a new IE window. You
should get a different session ID and thus non-sequential requests.

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?
Sep 29 '06 #3
there are two causes for this.

1) the two browsers are using the same session. say you opened the second
one from IE's new window rather than from the start menu. asp.net serializes
accss to session.

2) IE limits the number of requests to the same server, so will serial the
requests. yucan bump this up in the registry.

-- bruce (sqlwork.com)

"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?

Sep 29 '06 #4
Bruce,

Point 1 is not the case with me.

Could you please give me some more detail on Point 2 .Actually i am
accessing a Page on which I am sending multiple async requests. But
response is coming seuentiall.

I found that IIS is hadling the request serially.
bruce barker (sqlwork.com) wrote:
there are two causes for this.

1) the two browsers are using the same session. say you opened the second
one from IE's new window rather than from the start menu. asp.net serializes
accss to session.

2) IE limits the number of requests to the same server, so will serial the
requests. yucan bump this up in the registry.

-- bruce (sqlwork.com)

"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?
Oct 3 '06 #5
Somehow I am positive that point 1 is the case with you .
But anyway.
By default IE issues 4 simultaneous requests to the same server. All others
are put on hold.

It's done to prevent you killing your network with 100s simultaneous
requests if html page has 100s pictures on it.

Check http://www.speedguide.net/ they have a registry tweak that will bump
that number (4) up.

George.
"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Bruce,

Point 1 is not the case with me.

Could you please give me some more detail on Point 2 .Actually i am
accessing a Page on which I am sending multiple async requests. But
response is coming seuentiall.

I found that IIS is hadling the request serially.
bruce barker (sqlwork.com) wrote:
>there are two causes for this.

1) the two browsers are using the same session. say you opened the second
one from IE's new window rather than from the start menu. asp.net
serializes
accss to session.

2) IE limits the number of requests to the same server, so will serial
the
requests. yucan bump this up in the registry.

-- bruce (sqlwork.com)

"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googleg roups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?

Oct 3 '06 #6
I tried running the same scenario on the machine with windows 2003
server and IIS 6 installed. It is giving the expected results.Requests
are handled parallely and results are according to the default IE
settings
But on the machine having Windows XP and IIS 5.0 the requests are
handled serially as i mentioned.

I also tried running the same scenario on the machine having Dual
processor with windows XP and IIS 5.0.This is also giving the expected
result.
Did anyone of you is able to re-produce the same on your end?

George Ter-Saakov wrote:
Somehow I am positive that point 1 is the case with you .
But anyway.
By default IE issues 4 simultaneous requests to the same server. All others
are put on hold.

It's done to prevent you killing your network with 100s simultaneous
requests if html page has 100s pictures on it.

Check http://www.speedguide.net/ they have a registry tweak that will bump
that number (4) up.

George.
"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Bruce,

Point 1 is not the case with me.

Could you please give me some more detail on Point 2 .Actually i am
accessing a Page on which I am sending multiple async requests. But
response is coming seuentiall.

I found that IIS is hadling the request serially.
bruce barker (sqlwork.com) wrote:
there are two causes for this.

1) the two browsers are using the same session. say you opened the second
one from IE's new window rather than from the start menu. asp.net
serializes
accss to session.

2) IE limits the number of requests to the same server, so will serial
the
requests. yucan bump this up in the registry.

-- bruce (sqlwork.com)

"Hitesh" <ka*************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
We all know that IIS and asp.net are suppose to be muti-threaded
applications running on a pre-emptive multi-tasking model. But, what I
have
found is that under the default installation of ASP.NET, aspx pages get

executed serially. I know that it's easy to say that this can't be
right,
but I have found threads where others have confirmed this same
behavior.
The situation is _very_ easy to reproduce. Simply place two aspx pages
on a
web site, on the one page put some code that will take a bit to execute
(say
a while loop) and on the other page simply put some text (perhaps
"hello").
Now open two browser windows, in the first browser open the long
running
page, now in the second window open the hello page. What you will find
is
that you will not receive the hello page until the long running page
completes and is sent to the browser. The pages are running serially
on the
server!
How does one configure asp.net so that the pages run under a preemptive

multitasking model?
Oct 4 '06 #7

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

Similar topics

3
by: Sonoman | last post by:
http://www.gotw.ca/publications/concurrency-ddj.htm
11
by: Durai | last post by:
Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script...
2
by: Bruce W.1 | last post by:
ASP.NET processes one request at a time, sequentially. If one process blocks or sleeps then it brings down the entire application for all users. This fact is hidden under the rug by Microsoft. ...
2
by: Janusz Jezowicz | last post by:
Hello! I would like to have one page on the server, which would be a target processing page for a number of other aspx pages. E.g Processing page \portal_page.aspx Target pages
3
by: Animesh | last post by:
Hi All, I have a lexical analyzer in flex/bison associated with a lot of custom C function calls linking to external programs which uses quite a lot of global variables and data structures. The...
6
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
1
by: sanjupommen | last post by:
I am in the process of exploring the possibility of providing our products on databases other than Oracle.I am able to migrate the data, procedures etc without too much effort (latest version of DB2...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
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
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...
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:
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
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.