I'm assuming you want to do this dynamically, since you probably know you
can set a fixed maximum # of sessions using IIS manager. If you aren't sure
what max # of sessions you should set it to, you could monitor the server
during load (or simulate the load) & make a note of traffic vs CPU or
whatever you're concerned about. You should not have a goal of running the
server up to 99% CPU, though -- shoot for 85%.
For dynamic, programmatic control, as Alvin said you're probably better off
(IMO) having a job outside of IIS monitoring the number of connections via
WMI or something, then setting the max user sessions in the metabase based
on some criteria.
--
Ben Strackany
www.developmentnow.com
<a href="http://www.development now.com">dn</a>
"Ollie" <ol**********@h otmail.com> wrote in message
news:u$******** ******@tk2msftn gp13.phx.gbl...
Is there anyway to montior the number of user sessions from an asp.net
app\page?
The reason I ask is because I would like to throttle the number of
concurrent sessions to a website, i.e. limit the number of concurrent user
sessions lets say to 10,000 and if a user session exceeeds this amount
they would be redirected to a 'Server is to busy' screen.
I get the feeling there is no way to programmtically do this as I believe
the number of possible supported session is dependant on hardware and the
size of the data being stored in a session.
Cheers in advance
Ollie