473,804 Members | 3,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Worker process and Session state

Hello All,

I have a question about worker processes and session state. If I set-up a
web farm architecture by having multiple worker processes serving a single
application, how will the session state be affected?

For example, let's consider that a user A requested for page A and after
some time the same user requests page B. In both these cases, will a new
Session ID be created?

If we create a web farm architecture, will each worker process be in it's
own application domain?

Can someone please explain me what's the relation between worker process and
application domain? App. domain hosts worker process or is application domain
inside worker process?

Thanks for your clarifications! !
Oct 23 '06 #1
1 2078
all asp.net code run in an appdomain hosted by the worker process. a process
can host multiple domain. inproc sessions are stored in the appdomain, so
should not be used with web gardens or web farms.

sessionid are just id tickets stored in cookie. one is generated if the
cookie does not currently have one. then session is looked up (or created)
by the id.

so a session id will be shared across a web garden or farm, but if inprc
session is used, the session data will not be shared.

-- bruce (sqlwork.com)

"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:4D******** *************** ***********@mic rosoft.com...
Hello All,

I have a question about worker processes and session state. If I set-up a
web farm architecture by having multiple worker processes serving a single
application, how will the session state be affected?

For example, let's consider that a user A requested for page A and after
some time the same user requests page B. In both these cases, will a new
Session ID be created?

If we create a web farm architecture, will each worker process be in it's
own application domain?

Can someone please explain me what's the relation between worker process
and
application domain? App. domain hosts worker process or is application
domain
inside worker process?

Thanks for your clarifications! !

Oct 23 '06 #2

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

Similar topics

3
2839
by: Trevor Andrew | last post by:
Hi There, I have a small ASP.NET application under development. I am using VS.NET 2002 (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web hosting service in the US. I am experiencing the "Viewstate corrupted" error message on a particular page, when that page is left for a period of time and I return to it again, and submit it again. The page in question has a drop-down list of various RSS news feeds I am...
9
23088
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be processed by many worker processes?
6
2129
by: mark | last post by:
Just wondering if anyone has aspnet process recycling set up in any production environments. Our worker process memory gets out of control after being up for about a day or so and we were thinking about setting up some thresholds on memory usage. Any experiences using this would be greatly appreciated. thanks
2
1616
by: John | last post by:
Is the only criteria for worker process recycle 60% physical memory usage?? (I'm on W2K, default setup - I know you can change it in machine.config). Because if so, when using SQL Server on the same machine (knowing how memory hungry it can be!) this presumably often inhibits recycling?? In the past I've had .NET 1.1 & SQL Server 2000 running on a 256Mb machine (!!) with a very fat session state (in-proc storage), and no recycle...
5
3960
by: J-T | last post by:
I guess I'm a litte bit confused about app pool and worker process. In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated to a pool. If I assign only one application to a applicaton pool then: 1) Can I have multiple worker processes assigned to that pool? If yes,what is the advantage of doing so?
6
5996
by: Joe Jax | last post by:
I have an object that spawns a worker thread to process one of its methods. That method processes methods on a collection of other objects. During this processing, a user may request to cancel the entire operation. I could request abort on the worker thread, but that is a) potentially messy, and b) not guaranteed to take immediate effect anyway. I would rather have some way of allowing the main thread to tell the worker thread that it...
1
4901
by: Pablo Bianco SE | last post by:
Hi everyone, I am new in this group. I have a question and would like to have some support. A customer is experiencing memory problems with the asp.net worker process. The have an application installed on Windows 2003 Server (IIS6). We the application starts the worker process ocuppies about 70MB, but it keeps growing gradually during users activity. In just few hours (about 4 hours) it can reach 800 MB, making the application not being...
0
1178
by: Diffident | last post by:
Hello All, I have a question about worker processes and session state. If I set-up a web farm architecture by having multiple worker processes serving a single application, how will the session state be affected? For example, let's consider that a user A requested for page A and after some time the same user requests page B. In both these cases, will a new Session ID be created?
3
2124
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I am currently evaluating a CMS product. I like the product so far, but one of the restrictions on the product is that it requires that the Windows 2003 application pool be restricted to one worker process. They say this is being done to improve caching. (???) My understanding that the way ASP .Net scales is to create one worker process per CPU. If the number of worker processes is restricted to one, doesn't that mean that I am not...
0
9707
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...
1
10323
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,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
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
6856
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
5525
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
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.