recycling

IIS Recycle Global.asax

Is it possible to catch an recycle event in the global.asax? I know Application_End will be triggered but is there a way to know that it was triggered by a recycle of the application pool? thx, Lieven Cardoen aka Johlero ...

Are there any guarantees about when IIS might recycle while processing a 1-way WCF operation?

Background This question is in two parts. I have a one-way WCF operation hosted in IIS 6. The following is my understanding of how this works: _1. IIS receives a request. _2. IIS sends an HTTP 202 response (thanks, I'll process this later). _3. IIS calls my one-way WCF operation. Now control passes to my WCF operation w...

Why Even Recycle an Application Pool?

Maybe someone can shed some light on this simple question: I have a .NET web application that has been thoroughly vetted. It loads a cache per appdomain (process) whenever one starts and can not fully reply to requests until it completes this cache loading. I have been examining the settings on my application pools and have started won...

asp.net WCF service slow... will disabling asp.net app recycling help?

I have a WCF service that requires a certain response time (under 1 minute). My problem is that every so often, most often in the mornings the service takes a long time to respond (sometimes over 2 minutes). I'm thinking this is because the app has recycled and the first run must recompile. Are there other reasons this might happen? ...

How can I overcome a slow loading application with several app pools in IIS 7 ?

Hi, How can I overcome a slow loading application with several app pools in IIS 7 ? And not have requests wait for the server to load (in case of recycling) and create a queue. But have the server loaded while hitting recycle condition before the first requests arrives. Thanks, Oshrat. ...

Recycling Options for ASP.Net Application State Object

What are the options for recycling the ASP.Net application state object? I'm using that object to store queues of database connections for a web serviced based data access layer. I'm concerned that over days/weeks/months I'll end up allocating growing sums of memory on connections to db's that are no longer in use. The connections are...

IIS 6.0 recycle overlapping delay

Hi, Is it possible to add delay in overlapping iis 6.0 recycling? for example iis does not shutdown the old pool for 2 hours even the new app pool is live and processing requests. I`ve got sometimes a long running request. I thought that 'shutdown time limit' property is right one for that but it`s not. IIS is still shutdown the old poo...

Silverlight VirtualizingPanel recycling containers display wrong content

I recently wrote an implementation of a VirtualizingWrapPanel that recycles containers as they scroll into and out of view. On occasion I've noticed that the content rendered by the control is actually the previously contained data, not the current data. Performing any action on the control that forces a new render call updates the cont...

Determinate when an object not used by any other threads without lock?

Hi I implementing a high performance thread safe component, using no lock statements, only volatile and Interlocked are used for performance reasons. I have volatile reference-type member in a class, that contains thread safe instance. This instance is thread safe only for a couple of operations, and not for another. Because of that an...

Changing the Recycling time in code for ASP.NET

Hello, I want to run a process in asp.net and while it's running, I want to pro grammatically change the ASP.NET Recycling time to 1600, then back again to 60 after it's over. Has anyone done this and have any code to share? ...

ByteBuffer recycling class

Hi everyone, I'm wonder how I'd code up a ByteBuffer recycling class that can get me a ByteBuffer which is at least as big as the specified length, and which can lock up ByteBuffer objects in use to prevent their use while they are being used by my code. This would prevent re-construction of DirectByteBuffers and such over and over, inst...

Wpf item container recycling

I want to implement a custom canvas that recycles containers when used as an ItemsPanel. So I derived from VirtualizingPanel and override the ArrangeOverride and MeasureOverride. I am doing the generation in MeasureOverride like this: var children = base.InternalChildren; var itemsControl = ItemsControl.GetItemsOwner(this); ...

Wrong selection in ListBox with VirtualizationMode="Recycling" and SeclectionMode="Extended"?

I have a really strage behaviour. I have a ListBox in the View with a DataTemplate for its items including ViewModels. I bind the IsSelected to my ViewModel and use SelectionMode="Extended". Everything works fine. BUT if I add VirtualiuationMode="Recycling" the I get the wrong items. To reproduce: select items with Ctrl, then scroll down...

Stop IIS 7.5 Application Pool Recycling

How do stop application pools from recycling in IIS 7.5? I have configured the following settings: ProcessModel -> Idle Time-out (minutes) = 0 Recycling -> Regular Time Intervals (minutes) = 0 Are these settings enought to stop an application pool from recycling? ...

How to recycle my asp.net web application in production server?

I have made changes to my global.asax file so i want to recycle my web application to make the changes work. How to safely recycle my asp.net web application in production server? Any ideas.. ...

What is the best way to force an Application Start when an Application Pool is recycled?

I'm wondering if there is a way to automagically fire off an Application Start for a web site/application whenever the Application Pool for that site is recycled? Are there any canned solutions for this problem? I would really like to avoid having one of my end users have to go through the application start of the site if they can avoi...