473,769 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1776
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.comwrot e in message
news:11******** **************@ h48g2000cwc.goo glegroups.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.comwrot e in message
news:11******** **************@ h48g2000cwc.goo glegroups.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.comwrot e in message
news:11******** **************@ h48g2000cwc.goo glegroups.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.comwrot e in message
news:11******** **************@ h48g2000cwc.goo glegroups.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.comwrot e in message
news:11******** **************@ e3g2000cwe.goog legroups.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.comwrot e in message
news:11******* *************** @h48g2000cwc.go oglegroups.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.Request s
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.comwrot e in message
news:11******** **************@ e3g2000cwe.goog legroups.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.comwrot e in message
news:11******** **************@ h48g2000cwc.goo glegroups.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
1367
by: Sonoman | last post by:
http://www.gotw.ca/publications/concurrency-ddj.htm
11
5449
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 increment the column & another one decrement the column). Is the postgres support the concurrent access to update database? I got the following errors: test=# ERROR: deadlock detected ERROR: deadlock detected ERROR: deadlock detected .....
2
1635
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. It would clearly be a problem for any website that has tons of traffic. On this I seek specifics. Is it sequential per DLL or per page? If one page blocks, on say a big
2
2178
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
2466
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 program is quite complex and does a lot of Natural Language Processing. The program needs to initialize a few databases from files every time it launches and needs to load them in the memory. I am currently thinking of a design where I could...
6
4124
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
1
3450
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 elisp, first take a gander at Emacs Lisp Basics. HTML version with links and colors is at: http://xahlee.org/emacs/elisp_text_processing.html
1
5589
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 seems to have improved a lot compared to the earlier ones).* Unfortunately, I have limited knowledge of DB2, especially in setting the server parameters, their impact on an environment with high concurrency etc. As a result, we are getting very high...
0
13361
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 programatically either from UNIX or Oracle PLSQL. In this Section, I will be explaining about calling a Concurrent program from UNIX using the CONCSUB Command. Pre-requisite: 1. Concurrent Program should be registered in oracle Applications...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3564
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.