Memory question

Z

zdrakec

Hello all:

I have an aspx page which, when a remote machine opens it via IE, I see
a new entry in the Windows Task Manager on the server called w3wp.exe.
When I close the IE window on the remote machine that called up the Web
page, however, this process does not terminate.
Is there an explicit release of resources that I need to be doing in my
..aspx page that I am missing?

Thanks much,
zdrakec
 
W

William F. Robertson, Jr.

No, w3wp is the worker process that starts on the first request. This
process will handle all incoming requests. When the requests quit coming
in, there is a timeout setting in IIS under the AppPool properties,
Performance tab.
"Shutdown worker process after being idle for:"

Set this to however long you want the process to hang around after the last
request has come in. If your site will be receving traffic, I would not set
this to too low of a value. The process really isn't taking up too much
resources when no requests are coming in, but you can tweak it all you want.

There is something else you said that is another whole discussion:
When I close the IE window on the remote machine that called up the Web
page, however, this process does not terminate.

The server never, never knows about what the client has done with their
browser: closed it, gone to another site because your worker process kept
recycling and it took too long for your site to come up, etc.

There is some handy, crafty client side script you can implement for
receiving notification when a browser has closed, but I would never depend
on it, unless this is an internal application and your company has a
standard machine/build package.

bill
 
K

Kevin Spencer

I wouldn't advise changing the value unless there is a good reason for it.
As the old saying goes "if it ain't fixed, don't broke it." ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top