Hello all;
I have an ASP.NET application which I run part of it in a new thread. The
part running is very processor and time intensive and takes an hour plus to
complete.
The problem I am experiencing is after the thread has been running for about
20 min it stops. I am running this app on a Windows 2003 server and SQL
Server 2000 on the backend. I suspect it may be a SessionState time out
issue and I have played with the settings at the server and app level on IIS
and in the machine.config, increasing all values from the default value of
20 min to 120 min in the hopes it would work. I did get the process to run
for 60 min one time AFTER increasing the timeout to 120 min but the process
is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance,
Rob Bazinet 8 1301
In the IIS MMC, check the "Shutdown worker process if idle for X
minutes setting". Go to Application pools, right click and select
Properties for the pool your application runs in. This setting is the
first on the Performance tab.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:19:51 -0500, "Rob Bazinet"
<rb********@hot mail.com> wrote: Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
Scott,
Well, the setting is 20 min., which is the magic number but....it is
indicating idle time and I wouldn't think the worker process would be idle
at this point. Am I interpreting this setting incorrectly??? If I start
my process and watch utilization on w3wp.exe it is running at about 70-80%
the entire time. What am I missing??
Thanks,
Rob
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:ka******** *************** *********@4ax.c om... In the IIS MMC, check the "Shutdown worker process if idle for X minutes setting". Go to Application pools, right click and select Properties for the pool your application runs in. This setting is the first on the Performance tab.
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:19:51 -0500, "Rob Bazinet" <rb********@hot mail.com> wrote:
Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
idle means no requests
-- bruce (sqlwork.com)
"Rob Bazinet" <rb********@hot mail.com> wrote in message
news:u3******** ******@TK2MSFTN GP10.phx.gbl...
| Scott,
|
| Well, the setting is 20 min., which is the magic number but....it is
| indicating idle time and I wouldn't think the worker process would be idle
| at this point. Am I interpreting this setting incorrectly??? If I start
| my process and watch utilization on w3wp.exe it is running at about 70-80%
| the entire time. What am I missing??
|
| Thanks,
| Rob
|
| "Scott Allen" <bitmask@[nospam].fred.net> wrote in message
| news:ka******** *************** *********@4ax.c om...
| > In the IIS MMC, check the "Shutdown worker process if idle for X
| > minutes setting". Go to Application pools, right click and select
| > Properties for the pool your application runs in. This setting is the
| > first on the Performance tab.
| >
| > --
| > Scott
| > http://www.OdeToCode.com/blogs/scott/
| >
| > On Mon, 22 Nov 2004 14:19:51 -0500, "Rob Bazinet"
| > <rb********@hot mail.com> wrote:
| >
| >>Hello all;
| >>
| >>I have an ASP.NET application which I run part of it in a new thread.
The
| >>part running is very processor and time intensive and takes an hour plus
| >>to
| >>complete.
| >>
| >>The problem I am experiencing is after the thread has been running for
| >>about
| >>20 min it stops. I am running this app on a Windows 2003 server and SQL
| >>Server 2000 on the backend. I suspect it may be a SessionState time out
| >>issue and I have played with the settings at the server and app level on
| >>IIS
| >>and in the machine.config, increasing all values from the default value
of
| >>20 min to 120 min in the hopes it would work. I did get the process to
| >>run
| >>for 60 min one time AFTER increasing the timeout to 120 min but the
| >>process
| >>is stopping at about 20 min again.
| >>
| >>Anyone have any insight into this and can help it would be appreciated.
| >>
| >>Thanks in advance,
| >> Rob Bazinet
| >>
| >
|
|
As bruce pointed out, you'll need incoming requests to keep the app
alive (or change / disable the setting).
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:44:45 -0500, "Rob Bazinet"
<rb********@hot mail.com> wrote: Scott,
Well, the setting is 20 min., which is the magic number but....it is indicating idle time and I wouldn't think the worker process would be idle at this point. Am I interpreting this setting incorrectly??? If I start my process and watch utilization on w3wp.exe it is running at about 70-80% the entire time. What am I missing??
Thanks, Rob
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:ka******* *************** **********@4ax. com... In the IIS MMC, check the "Shutdown worker process if idle for X minutes setting". Go to Application pools, right click and select Properties for the pool your application runs in. This setting is the first on the Performance tab.
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:19:51 -0500, "Rob Bazinet" <rb********@hot mail.com> wrote:
Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
Thank you to both of you for the replies. It worked great. I had never had
a long running process like this and it was a learning experience.
-Rob
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:bi******** *************** *********@4ax.c om... As bruce pointed out, you'll need incoming requests to keep the app alive (or change / disable the setting).
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:44:45 -0500, "Rob Bazinet" <rb********@hot mail.com> wrote:
Scott,
Well, the setting is 20 min., which is the magic number but....it is indicating idle time and I wouldn't think the worker process would be idle at this point. Am I interpreting this setting incorrectly??? If I start my process and watch utilization on w3wp.exe it is running at about 70-80% the entire time. What am I missing??
Thanks, Rob
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:ka****** *************** ***********@4ax .com... In the IIS MMC, check the "Shutdown worker process if idle for X minutes setting". Go to Application pools, right click and select Properties for the pool your application runs in. This setting is the first on the Performance tab.
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 22 Nov 2004 14:19:51 -0500, "Rob Bazinet" <rb********@hot mail.com> wrote:
Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
Hi Rob,
I see that Scott and Bruce have pointed you in the right direction for the
actual problem.
But I would suggest that you think about some async mechanism to actually
run your requests if they are taking this long. Start up a new thread or an
Async HTTP Handler, or better yet run this operation in a separate
process/machine.
Long Web Requests, because of the ASP.NET thread pool, are ggenerally not a
good idea as they can cause a variety of problems including these timeouts.
If somebody hits that request more than once you're going to kill the
machine most likely for example.
+++ Rick ---
--
Rick Strahl
West Wind Technologies http://www.west-wind.com/ http://www.west-wind.com/weblog/ http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Rob Bazinet" <rb********@hot mail.com> wrote in message
news:uq******** ******@TK2MSFTN GP12.phx.gbl... Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus
to complete.
The problem I am experiencing is after the thread has been running for
about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on
IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to
run for 60 min one time AFTER increasing the timeout to 120 min but the
process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
Rick,
Great suggestions. Do you have an resources you can point me to? I wasn't
sure what approach to take with my long running process and the thread
seemed to be a solution but if you have something better I would be glad to
try it.
Thanks,
Rob
"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Hi Rob,
I see that Scott and Bruce have pointed you in the right direction for the actual problem.
But I would suggest that you think about some async mechanism to actually run your requests if they are taking this long. Start up a new thread or an Async HTTP Handler, or better yet run this operation in a separate process/machine.
Long Web Requests, because of the ASP.NET thread pool, are ggenerally not a good idea as they can cause a variety of problems including these timeouts. If somebody hits that request more than once you're going to kill the machine most likely for example.
+++ Rick ---
--
Rick Strahl West Wind Technologies http://www.west-wind.com/ http://www.west-wind.com/weblog/ http://www.west-wind.com/wwThreads/ ---------------------------------- Making waves on the Web
"Rob Bazinet" <rb********@hot mail.com> wrote in message news:uq******** ******@TK2MSFTN GP12.phx.gbl... Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
Rick,
Actually, I am starting a new thread for my long running process. Are you
referring to some other approach?
I am not familiar with Async Handlers but I will look into them.
Thanks,
Rob
"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Hi Rob,
I see that Scott and Bruce have pointed you in the right direction for the actual problem.
But I would suggest that you think about some async mechanism to actually run your requests if they are taking this long. Start up a new thread or an Async HTTP Handler, or better yet run this operation in a separate process/machine.
Long Web Requests, because of the ASP.NET thread pool, are ggenerally not a good idea as they can cause a variety of problems including these timeouts. If somebody hits that request more than once you're going to kill the machine most likely for example.
+++ Rick ---
--
Rick Strahl West Wind Technologies http://www.west-wind.com/ http://www.west-wind.com/weblog/ http://www.west-wind.com/wwThreads/ ---------------------------------- Making waves on the Web
"Rob Bazinet" <rb********@hot mail.com> wrote in message news:uq******** ******@TK2MSFTN GP12.phx.gbl... Hello all;
I have an ASP.NET application which I run part of it in a new thread. The part running is very processor and time intensive and takes an hour plus to complete.
The problem I am experiencing is after the thread has been running for about 20 min it stops. I am running this app on a Windows 2003 server and SQL Server 2000 on the backend. I suspect it may be a SessionState time out issue and I have played with the settings at the server and app level on IIS and in the machine.config, increasing all values from the default value of 20 min to 120 min in the hopes it would work. I did get the process to run for 60 min one time AFTER increasing the timeout to 120 min but the process is stopping at about 20 min again.
Anyone have any insight into this and can help it would be appreciated.
Thanks in advance, Rob Bazinet
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Satinderpal Singh |
last post by:
Hi All,
I have an EXE, I load the DLL from that exe in a seperate AppDomain. (I have
not given reference to that DLL from the EXE).
Now, i call some commands of that dll from the EXE, and in the background i
try to delete the DLL, it does not allows (fair enough).
Now, I unload that AppDomain using AppDomain.Unload method. Now, I try to
delete that DLL from the background it still does not allows, I thought the
|
by: Chris |
last post by:
Hi
I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have the same class/static method definition statictly linked to my EXE and when I call InvokeMember(...), even though I got the Type from the new AppDomain, it calls the static method that I am staticly linked to and not the static method in the dynamicly...
|
by: stu_pb |
last post by:
I am designing a plugin system for a window application using .NET(C#
specifically). One of the requirements of the plugin system is to be able to
dynamically load/unload plugins.
My initial thought was to use System.Reflection.Assembly.Load to load the
plugins dynamically. This worked great, but I was left with no way to
dynamically unload the plugin.
So now I come to creating a new AppDomain for the plugins to reside in,
since the...
|
by: MatthewRoberts |
last post by:
Howdy All,
I am having difficulty with two-way communication across AppDomains in
an attempt to dynamically script applications. Everything works as
expected, except when using ByRef parameters.
The below explanation is lengthy, but well worth the read. If you can
help me, I'd gladly share this code which has greatly helped my
development of extensible applications.
|
by: Chris Lacey |
last post by:
Hi,
I'm currently writing a scheduling service which starts a number DotNet
executables, each within a new AppDomain, every ten seconds.
The guts of the code is as follows:
// For each executable in the list of tasks
for (int i = 0; i < this.processTasks.Length; i++)
{
| |
by: A. Elamiri |
last post by:
Hello,
I created a small app which acts as a services manager. I basically drop a
DLL in a Services folder and set the frequency through the application for
how often do I want the code in the assembly to run (scheduler).
I created a seperate AppDomain here is the code:
....
AppDomainSetup ads = new AppDomainSetup();
string path =
|
by: Wal Turner |
last post by:
Hi there. There are various snippets on forums regarding issues with
AppDomain.Unload and how it just doesnt work.
Fortunately, I got it working with the base case, after much fiddling.
Consider this 5 line program:
AppDomain domain = AppDomain.CreateDomain("MyDomain");
domain.CreateInstance("TempDLL", "TempDLL.Class1");
MessageBox.Show("try deleting file now"); //cant delete file
AppDomain.Unload(domain);
|
by: Andrew Ducker |
last post by:
I'm trying to load an assembly into a temporary AppDomain rather than
my main AppDomain, so that it can be unloaded later on. However, it's
also loading into my main AppDomain at the same time.
My code is:
AppDomain a = AppDomain.CreateDomain("TestDomain");
a.Load("AppDomainTestAssembly");
and in the Console window I get the following when the second line
executes:
|
by: John |
last post by:
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?
Please advice.
Thanks in advance.
John
|
by: illegal.prime |
last post by:
Hi all, I'm getting unexpected results when trying to preload
assemblies into an AppDomain I'm creating. Upon creation of the
AppDomain - I attach an AssemblyResolve to both my current AppDomain
and the new AppDomain I create.
I copy all the assemblies/dlls into a new directory and then try
loading them all into the new AppDomain using the following:
private void LoadAssembliesFromDirectory(AppDomain appDomain, string
directory)
|
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: 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: 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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |