473,396 Members | 1,891 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.

Recycling the pool

Hello,

I will soon installed a small Ajax Asp.Net "single page" site on a client
site. This page is simply polling a Asp.Net Web service, which fetchs and
returns parameters (temperature, air conditioning status...) to be displayed
on the page. This is implemented with an Ajax Timer control server.

Now this is my first "industrial" web site, and I'm concerned about its
robustness.
Do I need to create a specific pool on IIS 6 for the web service and the
site ?
I'm aware than it is possible to "recycle" a pool. Do I need this ?
If the site/service is down, how can I automaticllay try to restart it ?

Best regards

Aug 28 '08 #1
4 1572
"Oriane" <or****@noemail.noemailwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello,

I will soon installed a small Ajax Asp.Net "single page" site on a client
site. This page is simply polling a Asp.Net Web service, which fetchs and
returns parameters (temperature, air conditioning status...) to be
displayed
on the page. This is implemented with an Ajax Timer control server.

Now this is my first "industrial" web site, and I'm concerned about its
robustness.
Do I need to create a specific pool on IIS 6 for the web service and the
site ?
You don't 'need' to but its a good idea to isolate your app from others
allowing you to make app pool setting choices applicable to your app.
I'm aware than it is possible to "recycle" a pool. Do I need this ?
Recycling is default on an app pool. For your sort of app regular recycling
after a period of time or after specified number of requests is undesirable
turn those off. You'll want health monitoring on (where the app pools is
pinged to check its still responsive). If you have reason to believe there
is some small leak that might bring the pool down at some point and you have
an 'out-of-hours' window then schedule a re-cycle in that window.
If the site/service is down, how can I automaticllay try to restart it ?
The will the default behaviour. If the app pool crashes subsequent requests
will start a new process.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 28 '08 #2
Hi Anthony,

Thank you for your answer.

"Anthony Jones" <An*@yadayadayada.coma écrit dans le message de
news:ex**************@TK2MSFTNGP06.phx.gbl...
You don't 'need' to but its a good idea to isolate your app from others
allowing you to make app pool setting choices applicable to your app.
In this URL:
http://www.microsoft.com/technet/pro....mspx?mfr=true, I
can see that "The IIS IIS_WPG group account has the minimum permissions and
user privileges that are necessary to start and run a worker process on a
Web server. Application pool identities must be members of this group so the
application pool can register with Http.sys." So if I set a new pool with a
new identity, I suppose that that identity should be in the IIS_WPG pool...

In fact, I'm a bit confused between the identity of the worker process
(which is I think the identity of the pool) and the account
IUSR_ComputerName, which is the account the anonymous user is mapped with.
Above all, I can impersonate the asp.net website in the web.config file...
Is there a document which clears up that matter ?

My question: if I want to access resources on the server from the web site
server code, what account is used ?

Best regards

Another (simple) question: is wwwroot the better directory to install a
intranet web server on a IIS 6.0 w2k3 server ?

Aug 28 '08 #3
"Oriane" <or****@noemail.noemailwrote in message
news:O3**************@TK2MSFTNGP02.phx.gbl...
Hi Anthony,

Thank you for your answer.

"Anthony Jones" <An*@yadayadayada.coma écrit dans le message de
news:ex**************@TK2MSFTNGP06.phx.gbl...
You don't 'need' to but its a good idea to isolate your app from others
allowing you to make app pool setting choices applicable to your app.
In this URL:
http://www.microsoft.com/technet/pro....mspx?mfr=true, I
can see that "The IIS IIS_WPG group account has the minimum permissions
and
user privileges that are necessary to start and run a worker process on a
Web server. Application pool identities must be members of this group so
the
application pool can register with Http.sys." So if I set a new pool with
a
new identity, I suppose that that identity should be in the IIS_WPG
pool...
>
In fact, I'm a bit confused between the identity of the worker process
(which is I think the identity of the pool) and the account
IUSR_ComputerName, which is the account the anonymous user is mapped with.
Above all, I can impersonate the asp.net website in the web.config file...
Is there a document which clears up that matter ?

My question: if I want to access resources on the server from the web site
server code, what account is used ?
All these different options are there to support a pelthora of different
scenarios. In your case it sounds like you want anonymous access to an
intranet style application.

Which account is used by ASP.NET code to access server resources depend on
whether you have enabled impersonate in the web.config. With impersonate
on it will use the authenticated user for the connection which for anonymous
connections will be the IUSR account. With impersonate off it will the app
pool identity.

My recommendation in this case would be to leave impersonate off and use the
pool identity. Further unless you have some reason to want to protect
resources from other web sites and services running on the server leave the
pool identity at the default NETWORK SERVICE then grant NETWORK SERVICE the
appropriate access to your resources.
>
Another (simple) question: is wwwroot the better directory to install a
intranet web server on a IIS 6.0 w2k3 server ?
I never use the wwwroot folder. I tend to use a new top level folder
(preferably on a different drive) where all the resources for the site are
placed, one sub-folder of this top level folder will be the root of the web
site.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 28 '08 #4
Ok thanks Anthony !
Aug 28 '08 #5

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

Similar topics

6
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...
2
by: Jeremy S. | last post by:
Just wondering if/how a sliding Cache expiration interacts with Application Pool Worker Process Recycling. Specifically, if I were to place some value into the Cache object with a sliding window...
5
by: Bob | last post by:
I've got a .NET Framework V1.1 web service running on a Windows 2003 Server that has 2 web methods that are called from a web application on the same server. One is a fire-and-forget method that...
11
by: Ravi Ambros Wallau | last post by:
Dear friends: This is my third question on this news in three days... Sorry for this spam behavior :-) I've a lot of problems on "first page load" after some change on web.config or even in the...
6
by: Wayne Smith | last post by:
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2...
5
by: Ed | last post by:
I have some questions in regards to Session variables and IIS Recycling: 1. Does the IIS setting 'Shutdown worker process after being idle' affect an application's session variables? Or is IIS...
2
by: Morten Snedker | last post by:
I'm not sure if this is the right group, but: When the IIS performs a recycle on an given Application Pool, the website on this pool seems to loose references to third-party DLL-files in the...
1
by: Aamir Mahmood | last post by:
Hi I have a problem that just appeared to my application. I have some initialization code in Application_Start function in global.asax but it is not being called when the application pool is...
0
by: madhusvuce | last post by:
I’ve developed a website using ASP.NET 2.0 & deployed it on IIS 6.0.I’m using Cookies to store user related information. The expiry of this cookie is set for ‘7’ days. In IIS one new application pool...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...
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...

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.