424,054 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

Shut down of asp.net process.

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.