Last post Jan 22, 2011 07:34 PM by muratyasar
Jan 02, 2011 11:47 PM|Medyo|LINK
Does anybody know how I can trigger the ASPNET_Worker process on Windows 2000 and 2003 servers? Apparently, every time we reboot our servers on Saturday nights our monitoring software generates alerts for the ASPNET_Worker process and they don't go away
until during the morning hours. This leaves me to believe that this process doesn't automatically run after a reboot and only starts to kick in when clients access our websites during the day. I'd like to be able to trigger the process after a server reboot
so our monitoring software doesn't identify it as down.
I was reading this post on http://weblogs.asp.net/jgalloway/archive/2006/06/01/Avoid-IISRESET-in-ASP.NET-applications-_2800_added-bonus_3A00_-ASPRESET_2900_.aspx and I believe the code on that article is what I need. However, I am only a SysAdmin and have
very little knowledge about programming. The writer mentioned compiling the code using SnippetCompiler but after downloading the software I can't seem to figure out how to turn the code into an .exe.
Jan 03, 2011 02:12 AM|egor598|LINK
The simplest way would be to create a scheduled task that would invoke a browser with your site url as a parameter.
This can be scheduled to run some time after server reboot and may be repeatedly scheduled until morning.
As a sysadmin, I am assuming you know how to create scheduled tasks on win boxes.
The other approach would be to install wget (http://www.christopherlewis.com/WGet/WGetFiles.htm)
or similar tool and schedule that instead of the browser.
Hope this helps
Jan 03, 2011 02:19 AM|anil.kasalanati|LINK
I am not sure why you want to create a worker process programatically. The best way to do this is to warmup your website.
So you need a script which will keep pinging your website so that cache and worker process is kept alive. If you are anyway using the monitoring software then can't you monitor the url.
Following is an easy way of configuring the pinging an url using TinyGet
You need a scheduler as well.
Jan 03, 2011 05:55 AM|Medyo|LINK
The scheduled task I can certainly do but when you start talking about "invoking" questions marks start raising. Are you trying to say that I can just run a task that would pull up the site on the local server and that would trigger the ASPNET_Worker process
just like that? Please correct me if I'm wrong but when I did some reading on this I believe that the ASPNET_Worker process can be triggered by pulling a .aspx page of the site (not a simple .html page). As a person working at the NOC all I know is that the
servers are hosting the websites that we have, as far as specific "pages" to the sites I wouldn't know what there URL are. I don't even have log ins to our client sites.
In any case, just to test it, I pulled up the homepage locally on the server but that didn't stop our monitoring software from detecting the ASPNET_Worker process as not running.
Jan 03, 2011 09:12 AM|sachingusain|LINK
As others have said, there is no way you can instantiate worker process until a user accesses it.
What you can do is create a .NET script using "WebRequest" object that would hit the target URL (for ASPX) and that should invoke the worker process.
You can then run this script on "startup". This does involve some bit of coding. Other than this, I dont think there is any way out.
Jan 05, 2011 03:34 PM|sachingusain|LINK
I know that you are running Win 2k, 2k3. But this feature has been recently added in IIS 7.5 Windows 2008 R2.
Here is a post from Scott Guthrie:
Jan 22, 2011 07:34 PM|muratyasar|LINK
It is an old post but someone might come and read these lines and give it a try.
Try this solution which worked for me.
warm up asp.net