473,322 Members | 1,703 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,322 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 15365
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
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: Shllpp 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.