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

ASP Sessions and Web Gardens

I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
processors (4 Proc to the server because of the HT).

My problem I that I have web garden turned on and can't get the sessions
to stay. I am new to IIS 6.0 so I don't know much about the whole web
garden thing. However, my entire site is written around ASP using
Sessions.

Any ideas on how to make this run on the new server?

Thanks,
Andrew J Durstewitz

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #1
3 15393
You can't enable web-gardens and use instrinsic ASP Sessions.

When you enable a web-garden, you are allowing IIS to create multiple
w3wp.exe to service that application pool. Each w3wp.exe process has it's
own memory, threads etc. They certainly don't know about ASP sessions
created in other processes.

For a Classic ASP app, you'd need to roll your own session state mechanism
that worked with some other kind of storage (outside the w3wp.exe
processes).

For an ASP.Net application however, it's very east to switch between the
intrinsic session state systems (inproc, session state service, and SQL
Server). With an ASP.Net application, you shouldn't use inproc session state
with a web garden, but you can switch to either of the other two systems.
With the other two systems, session state is stored externally, so no matter
which w3wp.exe process answers the incoming request, the process can
recreate the session state from the external session store.

Cheers
Ken

"Andrew Durstewitz" <ad*********@moreheadassociates.com> wrote in message
news:3f*********************@news.frii.net...
: I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: processors (4 Proc to the server because of the HT).
:
: My problem I that I have web garden turned on and can't get the sessions
: to stay. I am new to IIS 6.0 so I don't know much about the whole web
: garden thing. However, my entire site is written around ASP using
: Sessions.
:
: Any ideas on how to make this run on the new server?
:
: Thanks,
: Andrew J Durstewitz
:
: DEVBuilder.org, http://www.DEVBuilder.org
: ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #2
Hi

Just picked up on this and I know it will probably sound a very dum
question, but what pratical uses would a web garden bring to a developer?

Thanks

Laphan
Ken Schaefer <ke*******@THISadOpenStatic.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
You can't enable web-gardens and use instrinsic ASP Sessions.

When you enable a web-garden, you are allowing IIS to create multiple
w3wp.exe to service that application pool. Each w3wp.exe process has it's
own memory, threads etc. They certainly don't know about ASP sessions
created in other processes.

For a Classic ASP app, you'd need to roll your own session state mechanism
that worked with some other kind of storage (outside the w3wp.exe
processes).

For an ASP.Net application however, it's very east to switch between the
intrinsic session state systems (inproc, session state service, and SQL
Server). With an ASP.Net application, you shouldn't use inproc session state
with a web garden, but you can switch to either of the other two systems.
With the other two systems, session state is stored externally, so no matter
which w3wp.exe process answers the incoming request, the process can
recreate the session state from the external session store.

Cheers
Ken

"Andrew Durstewitz" <ad*********@moreheadassociates.com> wrote in message
news:3f*********************@news.frii.net...
: I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: processors (4 Proc to the server because of the HT).
:
: My problem I that I have web garden turned on and can't get the sessions
: to stay. I am new to IIS 6.0 so I don't know much about the whole web
: garden thing. However, my entire site is written around ASP using
: Sessions.
:
: Any ideas on how to make this run on the new server?
:
: Thanks,
: Andrew J Durstewitz
:
: DEVBuilder.org, http://www.DEVBuilder.org
: ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.


Jul 19 '05 #3
You can have multiple processes serving a single web application pool.

On IIS v5, this required mulitple physical processsors, but in IIS6 it no
longer requires that. If one process, for whatever reason, is busy, it means
that another process is still available to service incoming requests.

Check the IIS6 Resource Kit for more information:
http://www.microsoft.com/downloads/d...2-333D9C148E69

Cheers
Ken
"Laphan" <ne**@DoNotEmailMe.co.uk> wrote in message
news:3f********@127.0.0.1...
: Hi
:
: Just picked up on this and I know it will probably sound a very dum
: question, but what pratical uses would a web garden bring to a developer?
:
: Thanks
:
: Laphan
:
:
: Ken Schaefer <ke*******@THISadOpenStatic.com> wrote in message
: news:eQ**************@TK2MSFTNGP09.phx.gbl...
: You can't enable web-gardens and use instrinsic ASP Sessions.
:
: When you enable a web-garden, you are allowing IIS to create multiple
: w3wp.exe to service that application pool. Each w3wp.exe process has it's
: own memory, threads etc. They certainly don't know about ASP sessions
: created in other processes.
:
: For a Classic ASP app, you'd need to roll your own session state mechanism
: that worked with some other kind of storage (outside the w3wp.exe
: processes).
:
: For an ASP.Net application however, it's very east to switch between the
: intrinsic session state systems (inproc, session state service, and SQL
: Server). With an ASP.Net application, you shouldn't use inproc session
state
: with a web garden, but you can switch to either of the other two systems.
: With the other two systems, session state is stored externally, so no
matter
: which w3wp.exe process answers the incoming request, the process can
: recreate the session state from the external session store.
:
: Cheers
: Ken
:
: "Andrew Durstewitz" <ad*********@moreheadassociates.com> wrote in message
: news:3f*********************@news.frii.net...
: : I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: : processors (4 Proc to the server because of the HT).
: :
: : My problem I that I have web garden turned on and can't get the sessions
: : to stay. I am new to IIS 6.0 so I don't know much about the whole web
: : garden thing. However, my entire site is written around ASP using
: : Sessions.
: :
: : Any ideas on how to make this run on the new server?
: :
: : Thanks,
: : Andrew J Durstewitz
: :
: : DEVBuilder.org, http://www.DEVBuilder.org
: : ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
:
:
:
:
Jul 19 '05 #4

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
3
by: Maxime Ducharme | last post by:
Hi group We have a problem with sessions in one of our sites. Sessions are used to store login info & some other infos (no objects are stored in sessions). We are using Windows 2000 Server...
3
by: Will Woodhull | last post by:
Hi, I'm new here-- I've been reading the group for a couple of days. Nice group; I like the way n00b33 questions are handled. I've been using a Javascript routine in index.html to determine a...
2
by: Alan Partridge | last post by:
We are hosting our ASP.NET application on a multi-proc (4) machine but we're using InProc session state. Machine.Config has webGarden=false at the moment and only one ASP.NET worker process in...
2
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every...
2
by: Bhuwan Bhaskar | last post by:
Hi, What is the difference between web farms and web gardens? Thanks n Regards, Bhuwan
6
by: =?Utf-8?B?QnJlbmRhbiBLYXk=?= | last post by:
Hi there, We have an ASP.Net application that is generating huge numbers of Context Switches when a certain number of active users are present. We tried changing the configuration of the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.