473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1880
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********@hotmail.com> wrote in message
news:OD**************@tk2msftngp13.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_EndRequest Method ?

Best Regards Anders Both

My processModel settings are as follows:

<processModel
enable="true"
timeout="Infinite"
idleTimeout="Infinite"
shutdownTimeout="0:00:05"
requestLimit="Infinite"
requestQueueLimit="5000"
restartQueueLimit="10"
memoryLimit="60"
webGarden="false"
cpuMask="0xffffffff"
userName="machine"
password="AutoGenerate"
logLevel="Errors"
clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect"
comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00"
maxWorkerThreads="20"
maxIoThreads="20"
/>

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP12.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********@hotmail.com> wrote in message
news:OD**************@tk2msftngp13.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 ProcessModelInfo class and ProcessInfo class
this is what they look like

public class ProcessModelInfo
{
public static ProcessInfo GetCurrentProcessInfo();
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 ProcessShutDownReason ShutdownReason { get; }
public DateTime StateTime { get; }
public ProcessStatus Status { get; }
}

have fun....

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

--
Regards,

HD

"Anders Both" <an********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP12.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_EndRequest Method ?
Best Regards Anders Both

My processModel settings are as follows:

<processModel
enable="true"
timeout="Infinite"
idleTimeout="Infinite"
shutdownTimeout="0:00:05"
requestLimit="Infinite"
requestQueueLimit="5000"
restartQueueLimit="10"
memoryLimit="60"
webGarden="false"
cpuMask="0xffffffff"
userName="machine"
password="AutoGenerate"
logLevel="Errors"
clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect"
comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00"
maxWorkerThreads="20"
maxIoThreads="20"
/>

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP12.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********@hotmail.com> wrote in message
news:OD**************@tk2msftngp13.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="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="machine" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP12.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********@hotmail.com> wrote in message
news:OD**************@tk2msftngp13.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_State()
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********@hotmail.com> wrote in message
news:Ob**************@TK2MSFTNGP11.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="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="machine" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP12.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********@hotmail.com> wrote in message
news:OD**************@tk2msftngp13.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
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...
1
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...
3
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...
4
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
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...
2
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...
7
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
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...
0
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.