worker-process

Does an IIS worker process clear session variables when it recycles?

We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles? ...

Target IIS Worker Processes on Request

Ok, strange setup, strange question. We've got a Client and an Admin web application for our SaaS app, running on asp.net-2.0/iis-6. The Admin application can change options displayed on the Client application. When those options are saved in the Admin we call a Webservice on the Client, from the Admin, to flush our cache of the options ...

IIS Worker Process using a LOT of memory?

I have one website on my server, and my IIS Worker Process is using 4GB RAM consistently. What should I be checking? c:\windows\system32\inetsrv\w3wp.exe ...

Reliable way to see process-specific perf statistics on an IIS6 app pool

In perfmon in Windows Server 2003, there are counter objects to get per-process processor time and memory working set statistics. The only problem is that in an environment with multiple application pools, there is no way to reliably identify the correct worker process. In perfmon, they are all called "w3wp", and if there is more than on...

IIS App Pools - Stop/Start vs Recycle

I've noticed that on one of my production web apps, when I manually recycle an app pool, the recycled worker process can take upwards of 60+ seconds to actually be completely destroyed, based on watching it in Task Manager. However, if I stop the app pool completely, the worker process goes away nearly instantaneously - within 1-2 second...

Queuing systems - what is a good way to start up multiple workers?

How have you set-up one or more worker scripts for queue-oriented systems? How do you arrange to startup - and restart if necessary - worker scripts as required? (I'm thinking about such tools as init.d/, Ruby-based 'god', DJB's Daemontools, etc, etc) I'm developing an asynchronous queue/worker system, in this case using PHP & Beansta...

How do I prevent static member variables from being accessed by more than one request at a time in IIS?

I’m having some trouble with understanding how IIS is handling static variables on its threads. My understanding has always been that if IIS has 4 worker processes that it can handle 4 requests simultaneously and that it would be the same as having 4 separate threads running the website. Any static variables would persist in each indi...

Worker process reached its allowed processing time

We are experiencing this issue approximately once a month. It is very hard to pinpoint the cause so any help would be appreciated. This causes the App pool to stop and brings the site down. We have gone through all log files and have concluded nothing. We are using the 2.0.3 version on IIS 6. ...

Rule of thumb for amount of usage memory it takes to make a worker process recycle?

I've got a code base with lots of this: byte[] contents = FileUtils.FileToByteArray(FileOfGartantuanProportions); I don't control my IIS server, so I can't see the system log or do instrumentation, I just get to see my request fail to return (white page of death) and sometimes YSOD with Out of Memory error. Does anyone have a rule of...

Clear the ASP.net cache for multiple worker processes

We have an ASP.net (2.0) application configured to run with multiple worker processes using the web garden option in IIS. Most of our data is cached and occasionally we have to clear the cache when there are changes to the site. We have a simple page that will iterate through the HttpCache items and clear them. But each worker process ...

How to make BackgroundWorker return an object.

I need to make RunWorkerAsync() return a List<FileInfo>. How can I return an object from a background worker? ...

ASP.Net Worker Process Memory Profile Tools

We have a fairly high volume ASP.Net site written in c# using MS commerce server, running in a 32-bit environment. I see the worker process up to 980 megabytes quite often. I would like to profile this process and determine where any gains could be made in code to reduce the memory foot print of this site. My question what tools have wor...

Classic ASP session and Web Garden (multiple workers)

We are having issues with IIS6 slowdowns when using more than 1.2GB of RAM in a single worker and would like to use more workers. However looks like ASP sessions are made by worker and when the browser accesses some page through another worker it losts the ASP session. Do you have some tips on how to solve this problem? We are consider...

When does IIS recycle the worker process?

When I setup an application pool for my web app in IIS 6 it defaults the worker process to recycle in 1740 minutes (29 hours). Does this recycle happen even if there is activity on the web site or only if there is inactivity for 29 hours? ...

IIS, multiple CPU cores, application pools and worker processes - best configuration for a single site?

Hi We use Kentico CMS and I've exchanged emails with them about a web garden deployment. We have a single site running on a server with 8 cpu cores. In line with Kentico's advice, we have not altered the application pool web garden setting from the default i.e. it is set to a maximum number of worker processes of 1. Our experience is ...

Building a worker thread pool for a non-thread-safe code

What's the best way to wrap non-thread-safe code in the .net framework? I've got a third-party library that isn't thread safe due to its use of static variables. Rewriting it isn't an option. This library is used by an asp.net web service that receives lots of simultaneous calls. I've currently got it wrapped in a proxy class that uses...

.NET Tear Down a Windows Service

I'm in the middle of building a simple windows service and I'm running into a small issue. The service runs just fine, the OnStart method creates a worker process that listens for incoming UDP connections. The problem I'm having is that when I either click STOP on the service, or RESTART, the service stays running in the task manager. ...

ASP.NET session state and multiple worker processes

I need to understand something about ASP.NET session state, as it applies to IIS 7 and ASP.net 3.5. If an application is configured to use in-process session state, will that work OK if there are multiple worker processes? In other words, do worker processes share session state? The default configuration for IIS 7 is to use in-process ...

ASP.NET Web Garden - How Many Worker Processes Do I Need?

What is the best practice for deciding how many worker processes to allow for an ASP.NET web application? On one server I manage, creating a new AppPool defaults to 10 (maximum) worker processes. Other people suggest that the normal setting is one. What problem does multiple worker processes solve and what are the techniques for decidi...

System architecture: simple approach for setting up background tasks behind a web application -- will it work?

I have a Django web application and I have some tasks that should operate (or actually: be initiated) on the background. The application is deployed as follows: apache2-mpm-worker; mod_wsgi in daemon mode (1 process, 15 threads). The background tasks have the following characteristics: they need to operate in a regular interval (e...