I've started to get session loss on many of my web apps, after only a few
minutes (the session lifespan is supposed to be 60 minutes). It occurs in
several apps (all on same server), and started happening while I was on
..NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies compiled
using VS2005, not the original VS2003 ones).
My session states are very light (most stuff is held in the db). There is
plenty of available ram on the server (400Mb free or so), worker process is
using about 180Mb. The event log shows nothing out of the ordinary (worker
recycles should be logged there, yeah?). The processors are not busy (the
server runs about 5 apps, total of 20,000-40,000 pages per day, nothing
heavy). Theres no heavy app-layer computation tying up the thread-pool
(anything taking more than 1 sec or so gets sent to it's own thread).
Can anyone suggest what the problem is?!??!!? It can't be app specific,
since it's affecting several diff ones.
(system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C#
code-behind)
Thanks,
John 5 1515
Your application is recycling. If you are using InProc and you
are not in a web farm, this is the mostly like reason why.
Switch to StateServer and see if the problem persists.
--
Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"John" <js************ @ecclesdeleteth iscollege.ac.uk > wrote in message
news:eg******** *****@TK2MSFTNG P10.phx.gbl... I've started to get session loss on many of my web apps, after only a few minutes (the session lifespan is supposed to be 60 minutes). It occurs in several apps (all on same server), and started happening while I was on .NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies compiled using VS2005, not the original VS2003 ones).
My session states are very light (most stuff is held in the db). There is plenty of available ram on the server (400Mb free or so), worker process is using about 180Mb. The event log shows nothing out of the ordinary (worker recycles should be logged there, yeah?). The processors are not busy (the server runs about 5 apps, total of 20,000-40,000 pages per day, nothing heavy). Theres no heavy app-layer computation tying up the thread-pool (anything taking more than 1 sec or so gets sent to it's own thread).
Can anyone suggest what the problem is?!??!!? It can't be app specific, since it's affecting several diff ones.
(system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C# code-behind)
Thanks,
John
Hello John,
I have also faced exactly the same problem and I think I can help you here.
In my case the web server had to serve only one web application. Robbe Morris
is correct when he said that the application is recycling. I solved the
problem by contacting microsoft engineers. Here is how i resolved the probem.
First of all the problem is caused due to application recycling. aspnet_wp
gets recycled when any of the appdomains crash due to many reason. In my case
the appdomain was crashing due to a function which got into a recurse. Due to
this the stack overflowed and it crashed the appdomain. THis in turn caused
the worker process (aspnet_wp.exe) to also recycle.
I wanted to find more information on why this is happening and found some
help from internet and thread postings here. I came to know that if any of
the appdomain in the worker process crashes, then the worker process will
recycle and along with it all other appdomains will also 'die'. that means if
you have 5 appdomain for each web app and if one appdomain crashes then all
the 4 appdomain will also cease to exist because the worker process will
recycle.
Now the question is how you will find out the cause of the recycle. The
solution is microsoft debuggers. You need to download the debuggers that will
create a dump at the time of crashing. You wil get the exact cause of crash
from the dump files. Hope this helps you !!
cheers
pradeep_tp
"Robbe Morris [C# MVP]" wrote: Your application is recycling. If you are using InProc and you are not in a web farm, this is the mostly like reason why.
Switch to StateServer and see if the problem persists.
-- Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"John" <js************ @ecclesdeleteth iscollege.ac.uk > wrote in message news:eg******** *****@TK2MSFTNG P10.phx.gbl... I've started to get session loss on many of my web apps, after only a few minutes (the session lifespan is supposed to be 60 minutes). It occurs in several apps (all on same server), and started happening while I was on .NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies compiled using VS2005, not the original VS2003 ones).
My session states are very light (most stuff is held in the db). There is plenty of available ram on the server (400Mb free or so), worker process is using about 180Mb. The event log shows nothing out of the ordinary (worker recycles should be logged there, yeah?). The processors are not busy (the server runs about 5 apps, total of 20,000-40,000 pages per day, nothing heavy). Theres no heavy app-layer computation tying up the thread-pool (anything taking more than 1 sec or so gets sent to it's own thread).
Can anyone suggest what the problem is?!??!!? It can't be app specific, since it's affecting several diff ones.
(system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C# code-behind)
Thanks,
John
> that means if you have 5 appdomain for each web app and if one appdomain crashes then all the 4 appdomain will also cease to exist because the worker process will recycle.
Nope, not possible. You more than likely are running several applications
inside one appdomain. If you lose that appdomain, all your applications will
be destroyed. However, an appdomain crashing does not affect other app
domains. I'll preface this by saying this is only possible on IIS6. Lesser
versions of IIS do not run in this containment mode.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
"pradeep_TP " <pr*******@disc ussions.microso ft.com> wrote in message
news:F4******** *************** ***********@mic rosoft.com... Hello John,
I have also faced exactly the same problem and I think I can help you
here. In my case the web server had to serve only one web application. Robbe
Morris is correct when he said that the application is recycling. I solved the problem by contacting microsoft engineers. Here is how i resolved the
probem. First of all the problem is caused due to application recycling. aspnet_wp gets recycled when any of the appdomains crash due to many reason. In my
case the appdomain was crashing due to a function which got into a recurse. Due
to this the stack overflowed and it crashed the appdomain. THis in turn
caused the worker process (aspnet_wp.exe) to also recycle.
I wanted to find more information on why this is happening and found some help from internet and thread postings here. I came to know that if any of the appdomain in the worker process crashes, then the worker process will recycle and along with it all other appdomains will also 'die'. that means
if you have 5 appdomain for each web app and if one appdomain crashes then
all the 4 appdomain will also cease to exist because the worker process will recycle.
Now the question is how you will find out the cause of the recycle. The solution is microsoft debuggers. You need to download the debuggers that
will create a dump at the time of crashing. You wil get the exact cause of
crash from the dump files. Hope this helps you !!
cheers pradeep_tp
"Robbe Morris [C# MVP]" wrote:
Your application is recycling. If you are using InProc and you are not in a web farm, this is the mostly like reason why.
Switch to StateServer and see if the problem persists.
-- Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"John" <js************ @ecclesdeleteth iscollege.ac.uk > wrote in message news:eg******** *****@TK2MSFTNG P10.phx.gbl... I've started to get session loss on many of my web apps, after only a
few minutes (the session lifespan is supposed to be 60 minutes). It occurs
in several apps (all on same server), and started happening while I was
on .NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies compiled using VS2005, not the original VS2003 ones).
My session states are very light (most stuff is held in the db). There
is plenty of available ram on the server (400Mb free or so), worker
process is using about 180Mb. The event log shows nothing out of the ordinary (worker recycles should be logged there, yeah?). The processors are
not busy (the server runs about 5 apps, total of 20,000-40,000 pages per
day, nothing heavy). Theres no heavy app-layer computation tying up the thread-pool (anything taking more than 1 sec or so gets sent to it's
own thread).
Can anyone suggest what the problem is?!??!!? It can't be app
specific, since it's affecting several diff ones.
(system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C# code-behind)
Thanks,
John
Thanks for the help (and thanks pradeep_tp too),
I'll try switching to stateserver. But why is this happening?? everything
seems to be behaving well, no long loops or activity tieing up the main
thread pool.
Also, I thought worker recycles were logged in the app log? No sign of that
happening.
John
"Robbe Morris [C# MVP]" <in**@eggheadca fe.com> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . Your application is recycling. If you are using InProc and you are not in a web farm, this is the mostly like reason why.
Switch to StateServer and see if the problem persists.
-- Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"John" <js************ @ecclesdeleteth iscollege.ac.uk > wrote in message news:eg******** *****@TK2MSFTNG P10.phx.gbl... I've started to get session loss on many of my web apps, after only a few minutes (the session lifespan is supposed to be 60 minutes). It occurs in several apps (all on same server), and started happening while I was on .NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies compiled using VS2005, not the original VS2003 ones).
My session states are very light (most stuff is held in the db). There is plenty of available ram on the server (400Mb free or so), worker process is using about 180Mb. The event log shows nothing out of the ordinary (worker recycles should be logged there, yeah?). The processors are not busy (the server runs about 5 apps, total of 20,000-40,000 pages per day, nothing heavy). Theres no heavy app-layer computation tying up the thread-pool (anything taking more than 1 sec or so gets sent to it's own thread).
Can anyone suggest what the problem is?!??!!? It can't be app specific, since it's affecting several diff ones.
(system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C# code-behind)
Thanks,
John
Hi Alvin,
" ..You more than likely are running several applications
inside one appdomain..". It was interesting to hear that several
applications can run inside one appdomain. I do not know about IIS 6.0 but in
IIS 5.0 for each web application, separate appdomain is created. Check at
this web site for more info. http://aspalliance.com/226
cheers!
pradeep_tp
"Alvin Bruney - ASP.NET MVP" wrote: that means if you have 5 appdomain for each web app and if one appdomain crashes then all the 4 appdomain will also cease to exist because the worker process will recycle. Nope, not possible. You more than likely are running several applications inside one appdomain. If you lose that appdomain, all your applications will be destroyed. However, an appdomain crashing does not affect other app domains. I'll preface this by saying this is only possible on IIS6. Lesser versions of IIS do not run in this containment mode.
-- Regards, Alvin Bruney [MVP ASP.NET]
[Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 ------------------------------------------------------- "pradeep_TP " <pr*******@disc ussions.microso ft.com> wrote in message news:F4******** *************** ***********@mic rosoft.com... Hello John,
I have also faced exactly the same problem and I think I can help you here. In my case the web server had to serve only one web application. Robbe Morris is correct when he said that the application is recycling. I solved the problem by contacting microsoft engineers. Here is how i resolved the probem. First of all the problem is caused due to application recycling. aspnet_wp gets recycled when any of the appdomains crash due to many reason. In my
case the appdomain was crashing due to a function which got into a recurse. Due to this the stack overflowed and it crashed the appdomain. THis in turn caused the worker process (aspnet_wp.exe) to also recycle.
I wanted to find more information on why this is happening and found some help from internet and thread postings here. I came to know that if any of the appdomain in the worker process crashes, then the worker process will recycle and along with it all other appdomains will also 'die'. that means if you have 5 appdomain for each web app and if one appdomain crashes then all the 4 appdomain will also cease to exist because the worker process will recycle.
Now the question is how you will find out the cause of the recycle. The solution is microsoft debuggers. You need to download the debuggers that will create a dump at the time of crashing. You wil get the exact cause of crash from the dump files. Hope this helps you !!
cheers pradeep_tp
"Robbe Morris [C# MVP]" wrote:
Your application is recycling. If you are using InProc and you are not in a web farm, this is the mostly like reason why.
Switch to StateServer and see if the problem persists.
-- Robbe Morris - 2004/2005 Microsoft MVP C# http://www.masterado.net
"John" <js************ @ecclesdeleteth iscollege.ac.uk > wrote in message news:eg******** *****@TK2MSFTNG P10.phx.gbl... > I've started to get session loss on many of my web apps, after only a few > minutes (the session lifespan is supposed to be 60 minutes). It occurs in > several apps (all on same server), and started happening while I was on > .NET1.1, and continues now I've moved to 2.0 (native 2.0 assemblies > compiled using VS2005, not the original VS2003 ones). > > My session states are very light (most stuff is held in the db). There is > plenty of available ram on the server (400Mb free or so), worker process > is using about 180Mb. The event log shows nothing out of the ordinary > (worker recycles should be logged there, yeah?). The processors are not > busy (the server runs about 5 apps, total of 20,000-40,000 pages per day, > nothing heavy). Theres no heavy app-layer computation tying up the > thread-pool (anything taking more than 1 sec or so gets sent to it's own > thread). > > Can anyone suggest what the problem is?!??!!? It can't be app specific, > since it's affecting several diff ones. > > (system: Windows 2000 Server fully patched, SQL 2000 sp4, .NET2.0, C# > code-behind) > > Thanks, > > John > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mbosco51 |
last post by:
I know this is a common thread, but I seem to be losing session
variables on my website. I read through everything I could find,
including this link: http://aspfaq.com/show.asp?id=2157, but cannot
seem to fix the problem.
First so history... we were getting a lot of reports of session loss on
a particular page. Eventually we tracked it down to the fact that we
were launching pop up windows, which do not always share the same
state. ...
|
by: John Wilcher |
last post by:
Environment: Windows 2000 Server, IIS 5.0, ASP .Net
Framework 1.1, VB .Net source code
We are experiencing a condition that manifests itself as a
loss of all session objects. Intermittently (read as: no
discernable pattern at this point), HTTP requests from
users result in a 'Server Application / Error.' The user
requests a page and the non-custom, Microsoft standard
error page is shown with the above message. We have
verified that...
|
by: Michael Carr |
last post by:
I have an intermittent problem that occurs on a very small number of
browsers that access my website. The strange thing is this: my site works
perfectly for 99.9% of browsers. The behavior described below occurs for
0.1% of users, and so far I've only seen it on IE 6.0.
My ASP.NET website is set up like this:
1. Logon page - Collect username / password and verify against the DB. If
OK, store the UserID in Session and redirect to Main...
|
by: Chris |
last post by:
When a request comes into a page on my ASP.net site and a session is
not found, I want to detect whether the request is an initial request
or if the user did have a session going that has now been lost and
show an explanatory message before restarting the session.
Rather than tagging a 'session in progress' flag on the end of every
request querystring I'd like to detect it using data sent in every
request.
One idea I had was that when...
|
by: Chris |
last post by:
I'm on a project where the prevoius developer wrote code like below. I
thought stuff like this was bad? Isn't he putting a page into a session
object? And what we are trying to do is hit the db via a Stored Proc to
create a datatable in most cases. This seems like a waste to me. Is this good?
Public Shared Function getSQL(ByRef thePage As Page) As ProjectName.SQLServer
If thePage.Session("mySQLInit") = "1" Then
Return...
| |
by: Tim W. |
last post by:
Chaps.
We are working with SQL-Server based Sessions in the following environemtn:
Win-Server 2K3 incl. IIS, Dot Net Framework 1.1, SQL2K SP3a, German.
We are defining a Session-Variable named keyword inside asp.net website. At
the end of the Website we are writing this variable again to test if the
value still exists to the output-buffer.
|
by: leena13 |
last post by:
Hi,
I am facing a problem of loss of session variables once the ASP.Net 2.0 application is deployed. Let me add that this is actually a 1.1 to 2.0 migration.
I found that the first time the page is posted, I found that session variables are getting lost. When I hit Back on IE, and re-enter, the session variables exist and things move smoothly. This problem was not occurring when I tested on my machine, but only after deployment to the...
|
by: GaryDean |
last post by:
The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.
The application still timesout at 20 minutes.
What else can I do?
--
|
by: Martin Kulov [MVP] |
last post by:
Hi,
I am wondering if this problem is still valid for ASP.NET 2.0.
"To maintain session state across different Web servers in the Web farm, the
application path of the Web site (for example, \LM\W3SVC\2) in the Microsoft
Internet Information Services (IIS) metabase must be the same for all of the
Web servers in the Web farm. The case also needs to be the same because the
application path is case-sensitive."
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |