473,472 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Memory question

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

Nov 19 '05 #1
3 914
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

<zd*****@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com... 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

Nov 19 '05 #2
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.

"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:ue****************@TK2MSFTNGP12.phx.gbl...
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

<zd*****@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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


Nov 19 '05 #3
Thank you sir, that is what I needed to know!!

Cheers,
zdrakec

Nov 19 '05 #4

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

Similar topics

32
by: John | last post by:
Hi all: When I run my code, I find that the memory that the code uses keeps increasing. I have a PC with 2G RAM running Debian linux. The code consumes 1.5G memory by the time it finishes...
6
by: Fred Zwarts | last post by:
Hello, I am trying to debug some complex debug code. In order to track the use of dynamically allocated memory, I replaced the standard global new and delete operators. (Not for changing the...
20
by: Jonas | last post by:
Hi, I'm 99 % sure that Standard C guarantees to do a memory move inside realloc() in case the new, returned memory block (address) is different than the original one. Can any C expert confirm...
8
by: vikram | last post by:
i have series of questions 1.How a c program is loaded in memory i mean the whats is the structure that the code segment?? data segment?? 2.When you say const int *p; where is p...
30
by: jimjim | last post by:
Hello, This is a simple question for you all, I guess . int main(){ double *g= new double; *g = 9; delete g; cout<< sizeof(g)<<" "<<sizeof(double)<<" "<<sizeof(*g)<<" "<<*g<<" "<<endl; *g =...
18
by: Ramasubbu Ramasubramanian XR (AS/EAB) | last post by:
What is memory leakage, could any one explain with sample code
25
by: Zeng | last post by:
I finally narrowed down my code to this situation, quite a few (not all) of my CMyClass objects got hold up after each run of this function via the simple webpage that shows NumberEd editbox. My...
2
by: Ashish | last post by:
hi all, I have been doing some performance testing of a asp_net website, to be hosted on a shared server .. as far as i understand every page when accessed first time is compiled and loaded in...
7
by: toton | last post by:
Hi, I have a STL vector of of characters and the character class has a Boost array of points. The things are vector<Characterchars; and class Character{ private: array<Point,Npoints; }; Now...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
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
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.