473,769 Members | 3,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Shut down of asp.net process.

If no pages in my asp.net web-system, is being requested for some periode,
it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep
data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.

Nov 18 '05 #1
5 1906
the way asp.net worker process is handled and shutdown or restarted is
governed by machine.config file....

have a look into the different params for this purpose

http://www.aspalliance.com/articleVi...aId=226&pId=-1

http://www.codeproject.com/aspnet/aspwp.asp

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:OD******** ******@tk2msftn gp13.phx.gbl...
If no pages in my asp.net web-system, is being requested for some periode,
it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep
data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.

Nov 18 '05 #2
Thx, Alot.

But if the process has been shut down, how can I then found out why this
happend? Can this resson be registret in the Application_End Request Method ?

Best Regards Anders Both

My processModel settings are as follows:

<processModel
enable="true"
timeout="Infini te"
idleTimeout="In finite"
shutdownTimeout ="0:00:05"
requestLimit="I nfinite"
requestQueueLim it="5000"
restartQueueLim it="10"
memoryLimit="60 "
webGarden="fals e"
cpuMask="0xffff ffff"
userName="machi ne"
password="AutoG enerate"
logLevel="Error s"
clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t"
comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00"
maxWorkerThread s="20"
maxIoThreads="2 0"
/>

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
the way asp.net worker process is handled and shutdown or restarted is
governed by machine.config file....

have a look into the different params for this purpose

http://www.aspalliance.com/articleVi...aId=226&pId=-1

http://www.codeproject.com/aspnet/aspwp.asp

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:OD******** ******@tk2msftn gp13.phx.gbl...
If no pages in my asp.net web-system, is being requested for some periode, it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.


Nov 18 '05 #3
you are welcome.

try using ProcessModelInf o class and ProcessInfo class
this is what they look like

public class ProcessModelInf o
{
public static ProcessInfo GetCurrentProce ssInfo();
public static ProcessInfo[] GetHistory(int num);
}

public class ProcessInfo
{
public TimeSpan Age { get; }
public int PeakMemoryUsed { get; }
public int ProcessID { get; }
public int RequestCount {get; }
public ProcessShutDown Reason ShutdownReason { get; }
public DateTime StateTime { get; }
public ProcessStatus Status { get; }
}

have fun....

Info from Essential ASP.NET... nice book...

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:ed******** ******@TK2MSFTN GP12.phx.gbl...
Thx, Alot.

But if the process has been shut down, how can I then found out why this
happend? Can this resson be registret in the Application_End Request Method ?
Best Regards Anders Both

My processModel settings are as follows:

<processModel
enable="true"
timeout="Infini te"
idleTimeout="In finite"
shutdownTimeout ="0:00:05"
requestLimit="I nfinite"
requestQueueLim it="5000"
restartQueueLim it="10"
memoryLimit="60 "
webGarden="fals e"
cpuMask="0xffff ffff"
userName="machi ne"
password="AutoG enerate"
logLevel="Error s"
clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t"
comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00"
maxWorkerThread s="20"
maxIoThreads="2 0"
/>

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
the way asp.net worker process is handled and shutdown or restarted is
governed by machine.config file....

have a look into the different params for this purpose

http://www.aspalliance.com/articleVi...aId=226&pId=-1

http://www.codeproject.com/aspnet/aspwp.asp

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:OD******** ******@tk2msftn gp13.phx.gbl...
If no pages in my asp.net web-system, is being requested for some periode, it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.



Nov 18 '05 #4
Thx, wery usefull.

But can I register what casued that the process was shut down. My problem is
that my process just shut´s down, and i don´t know why.
e.g in global.asax.cs Application_End () ?

My processModel setting are below. (they are still the default settings for
W2K3)

BR Anders Both
<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="machi ne" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
the way asp.net worker process is handled and shutdown or restarted is
governed by machine.config file....

have a look into the different params for this purpose

http://www.aspalliance.com/articleVi...aId=226&pId=-1

http://www.codeproject.com/aspnet/aspwp.asp

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:OD******** ******@tk2msftn gp13.phx.gbl...
If no pages in my asp.net web-system, is being requested for some periode, it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.


Nov 18 '05 #5
dont know if you can use the in application_End ()
just give it a try.. no harm.... (there are ample ways i can think of where
application would be terminated - kill the worker process and
application_end would never be called)

if its not getting called... put the code in Application_Sta te()
in your global asax...

you could potentially have it at both places to maintain an audit trail of
startup... shutdown events

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:Ob******** ******@TK2MSFTN GP11.phx.gbl...
Thx, wery usefull.

But can I register what casued that the process was shut down. My problem is that my process just shut´s down, and i don´t know why.
e.g in global.asax.cs Application_End () ?

My processModel setting are below. (they are still the default settings for W2K3)

BR Anders Both
<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="machi ne" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
the way asp.net worker process is handled and shutdown or restarted is
governed by machine.config file....

have a look into the different params for this purpose

http://www.aspalliance.com/articleVi...aId=226&pId=-1

http://www.codeproject.com/aspnet/aspwp.asp

--
Regards,

HD

"Anders Both" <an********@hot mail.com> wrote in message
news:OD******** ******@tk2msftn gp13.phx.gbl...
If no pages in my asp.net web-system, is being requested for some periode, it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?

I don´t want my asp.net process to ever shut down, because I want to keep data, object etc, in ram.

I hope someone can give me good advices.

Best regards, Anders Both, Denmark.



Nov 18 '05 #6

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

Similar topics

1
717
by: Daniel | last post by:
System.IO.StreamWriter Close or Flush method to shut down the computer in such a way that just part of the file is written? or an empty file is written? Also if the Close or Flush is to a streamwriter writing to a network share, is it possible for the network to go down in such a way that the tartet file is only partialy written? or are there some kind of check sums to prevent this.
1
1835
by: dudinissan | last post by:
Hello, I am writing c# web application with Excel 2000. My code is: Excel.Application EXL; EXL = new Excel.Application(); Excel.Worksheet WSheet = new Excel.WorksheetClass(); string FileName = MapPath(".") + "\\..xls"; WSheet = (Excel.Worksheet)EXL.Workbooks.Open(FileName, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
3
3481
by: kuldeep | last post by:
Hi all, I have a application developed in C# .net. The problem I face is I am unable to shutdown my machine when the exe is running. Windows is unable to close this exe an shut down. Can anyone help. Regards, Kuldeep Pawar
4
2254
by: Diogo Alves - Software Developer | last post by:
Hi, I have a application developed by me in C# that does not let windows shut down! What is the problem? is this a Framework bug? I would like to receive some feedback about this issue
2
1394
by: Ken Kolda | last post by:
We're using .NET remoting hosted under IIS but we're running into problems with the server shutting down the ASP.NET worker process unexpectedly. Since I know this can occur because of the settings in the <processModel> area of the machine.config, we've tried a couple of things to resolve this: 1) We ensured all the timeout/request limit settings were set to "Infinite" and the memory limit set to 100%. 2) We tried setting the "logLevel"...
2
11760
by: Jason S | last post by:
Hi there, I created a simple VB app that runs in the background that I now need to detect when Windows (XP with SP2) is just about to Shut Down OR the user is Logging Off. Is this possible? I require my app to either pause the shutdown/log-off process for a few seconds whilst it does something important (it's a security thing). As soon as its finished, Windows should resume logging off the user and/or shutting down. Thanks in advance.
7
1968
by: mangesh | last post by:
Is there any function in standard library that can forcefully release memory associated with a process(application) ? Regards Mangesh .
5
4382
by: Bubba | last post by:
Hi, We have HttpHandlers that can process requests for up to 50 minutes. Those HttpHandlers are running in an app domain inside the DefaultAppPool. We'd like the HttpHandlers to be able to detect when its containing app pool or app domain is requesting a shutdown (when it is recycling, for example). I looked at the Application_End method in global.asax, as well as the System. AppDomain.CurrentDomain.DomainUnload event. Neither get...
0
2046
by: ArkJ | last post by:
Hello. I have a little problem. I created a little Service which uses SIP, all works rather well, but when I want to shut it down in the Services panel, it looks as if it's shut down, but in fact it's not: - when I try want to delete the .DLL file, I can't: the file is still locked - if I "Start" my Service again, it refuses I have to wait like ~20s, and then it is really shut down. When I shut down the Service, and then try to Start it...
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9984
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8863
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7403
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
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.