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

Webgarden


Hello, I have a question about webgardens.
As I understand it, a webgarden is physically one box with multiple
processors in it.
In the MSDN documentation about webgardens they mention :
"If webGarden is set to true, by default, all CPUs are enabled and ASP.NET
starts one process for each CPU"

Ok.. So this means that when I have a box with 2 processors it will actually
create a worker process for every CPU.
Does this mean that this box will have 2 sessions to manage?

I know there is MSSQL and StateServer to store session in 1 place and share
them accross CPU's but I would rather use the InProc equivalent on this box,
just to make sure that there is only one session created that spans the 2
CPUs.
Does anybody know how to accomplish this not using SQLServer or Stateserver?

thanks in advance,
--yves
Nov 18 '05 #1
3 2611
There is two separate processes, two separate sessions, and two separate
application objects. We learned this the hard way. If you want keep a
single machine from having user experience anomalies do yourself a favor
and at least setup StateServer on the same machine as the website.
You'll take a hit for crossing the processes but by placing it on the
same machine you won't have to take the hit of going to the network. The
performance hit is not severe unless you are trying to serialize huge
amounts of data. The biggest issue involved is usually related to
rewriting any non-serializable objects so that they can be serialized
across the process boundary (both SQLServer and StateServer require
that). Sorry the news isn't better.

Of course there is always the option of disabling webgardens for the
website and running multiple machines to get the same performance boost,
but then you have to deal with webfarm setup, sticky IP management,
and/or the same session management issues.

Have A Better One!

John M Deal, MCP
Necessity Software

DrBytes wrote:
Hello, I have a question about webgardens.
As I understand it, a webgarden is physically one box with multiple
processors in it.
In the MSDN documentation about webgardens they mention :
"If webGarden is set to true, by default, all CPUs are enabled and ASP.NET
starts one process for each CPU"

Ok.. So this means that when I have a box with 2 processors it will actually
create a worker process for every CPU.
Does this mean that this box will have 2 sessions to manage?

I know there is MSSQL and StateServer to store session in 1 place and share
them accross CPU's but I would rather use the InProc equivalent on this box,
just to make sure that there is only one session created that spans the 2
CPUs.
Does anybody know how to accomplish this not using SQLServer or Stateserver?

thanks in advance,
--yves

Nov 18 '05 #2
Thank for the answer John.
Too bad that I have to install stateserver just to share the Session.

Are there other ways around this? For instance, returning the Session to the
correct CPU during postbacks, etc?
This way I can have the bi CPU setup but not lose the session..

Thanks,

--yves

"John M Deal" wrote:
There is two separate processes, two separate sessions, and two separate
application objects. We learned this the hard way. If you want keep a
single machine from having user experience anomalies do yourself a favor
and at least setup StateServer on the same machine as the website.
You'll take a hit for crossing the processes but by placing it on the
same machine you won't have to take the hit of going to the network. The
performance hit is not severe unless you are trying to serialize huge
amounts of data. The biggest issue involved is usually related to
rewriting any non-serializable objects so that they can be serialized
across the process boundary (both SQLServer and StateServer require
that). Sorry the news isn't better.

Of course there is always the option of disabling webgardens for the
website and running multiple machines to get the same performance boost,
but then you have to deal with webfarm setup, sticky IP management,
and/or the same session management issues.

Have A Better One!

John M Deal, MCP
Necessity Software

DrBytes wrote:
Hello, I have a question about webgardens.
As I understand it, a webgarden is physically one box with multiple
processors in it.
In the MSDN documentation about webgardens they mention :
"If webGarden is set to true, by default, all CPUs are enabled and ASP.NET
starts one process for each CPU"

Ok.. So this means that when I have a box with 2 processors it will actually
create a worker process for every CPU.
Does this mean that this box will have 2 sessions to manage?

I know there is MSSQL and StateServer to store session in 1 place and share
them accross CPU's but I would rather use the InProc equivalent on this box,
just to make sure that there is only one session created that spans the 2
CPUs.
Does anybody know how to accomplish this not using SQLServer or Stateserver?

thanks in advance,
--yves

Nov 18 '05 #3
We tried to find information on "sticky cpu" and weren't able to. We
brought this to our sys admins and they weren't able to either, nor were
they willing to user a support item to get an answer from Microsoft
given that StateServer gave us a way around the issue. We ended up
going with StateServer as our fall back.

You may want to take the question of whether or not you can do this to
an IIS user group and see if anyone there knows. Sorry I couldn't help
further on this.

John M Deal, MCP
Necessity Software

DrBytes wrote:
Thank for the answer John.
Too bad that I have to install stateserver just to share the Session.

Are there other ways around this? For instance, returning the Session to the
correct CPU during postbacks, etc?
This way I can have the bi CPU setup but not lose the session..

Thanks,

--yves

"John M Deal" wrote:

There is two separate processes, two separate sessions, and two separate
application objects. We learned this the hard way. If you want keep a
single machine from having user experience anomalies do yourself a favor
and at least setup StateServer on the same machine as the website.
You'll take a hit for crossing the processes but by placing it on the
same machine you won't have to take the hit of going to the network. The
performance hit is not severe unless you are trying to serialize huge
amounts of data. The biggest issue involved is usually related to
rewriting any non-serializable objects so that they can be serialized
across the process boundary (both SQLServer and StateServer require
that). Sorry the news isn't better.

Of course there is always the option of disabling webgardens for the
website and running multiple machines to get the same performance boost,
but then you have to deal with webfarm setup, sticky IP management,
and/or the same session management issues.

Have A Better One!

John M Deal, MCP
Necessity Software

DrBytes wrote:
Hello, I have a question about webgardens.
As I understand it, a webgarden is physically one box with multiple
processors in it.
In the MSDN documentation about webgardens they mention :
"If webGarden is set to true, by default, all CPUs are enabled and ASP.NET
starts one process for each CPU"

Ok.. So this means that when I have a box with 2 processors it will actually
create a worker process for every CPU.
Does this mean that this box will have 2 sessions to manage?

I know there is MSSQL and StateServer to store session in 1 place and share
them accross CPU's but I would rather use the InProc equivalent on this box,
just to make sure that there is only one session created that spans the 2
CPUs.
Does anybody know how to accomplish this not using SQLServer or Stateserver?

thanks in advance,
--yves

Nov 18 '05 #4

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

Similar topics

1
by: Jenny | last post by:
Hi all, where can I find more good information on Webfarm and Webgarden? Thanks Jenny
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: Amit Agarwal | last post by:
hi, anyone can give info regarding which one to choose ? like the pros and cons of the respective methods!! bye, amit agarwal india
1
by: Bill Green | last post by:
What are the benifits of running two aspnet_wp's on each cpu? vs letting the OS manage the threads to the processors. Thanks, -- Bill Green
0
by: Jeremy | last post by:
Hello all, I've done a couple of hours searching for answers to this question, but couldn't find a definite answer. I'm hoping someone here can just give me a quick answer. I have a dual...
4
by: cmay | last post by:
If you enable the webgarden setting on a server that has multiple processors, IIS will create multiple worker processes correct? Is it correct that when this happens, these processes can not...
0
by: Phinneas | last post by:
Howdy, I have multiple apps running on a pair of dual-processor Win2k IIS servers, neither of which are domain controllers. My users are experiencing fairly frequent (10-20 / day) "Server...
1
by: SevDer | last post by:
Hi, I would like to know, if it is possible to maintain affinity by having a webgarden for our ASP.NET application in multi CPU server? And of course if possible without or minimal code change...
3
by: MattB | last post by:
I have a asp.net 1.1 application that a client is running at a hosting company. The hosting company has WebGarden = 1 on that machine's machine.config, and we get the following error in 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.