473,624 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange caching behaviour with ASP.net 2.0

Last month we upgraded our production server from .net 1.1 to 2.0. We have
seen some odd behaviour that we do not know how to fix.

It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback that
writes an entry to the event log to see if the Cache is cleared. It appears
that it is. This happens (randomly) several times a day. I changed our global
entries to use Application state however this just seemed to amplify the
problem.

Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?

I do not know if the cache is being reset, causing the application to crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandled ExceptionPolicy enabled="true"
attribute to the web.config with no joy)

At the same time that an entry is written to say the cache has been cleared,
the performance monitor registers requests /second at 286,000,000

If anyone has experienced similar issues, can shed some light or point me in
the right direction it would be greatly appreciated.

Kind Regards,

Darren
Jun 23 '06 #1
2 1174
check the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.

-- bruce (sqlwork.com)

"Darren Newton" <Darren Ne****@discussi ons.microsoft.c om> wrote in message
news:2D******** *************** ***********@mic rosoft.com...
Last month we upgraded our production server from .net 1.1 to 2.0. We have
seen some odd behaviour that we do not know how to fix.

It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback
that
writes an entry to the event log to see if the Cache is cleared. It
appears
that it is. This happens (randomly) several times a day. I changed our
global
entries to use Application state however this just seemed to amplify the
problem.

Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?

I do not know if the cache is being reset, causing the application to
crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandled ExceptionPolicy
enabled="true"
attribute to the web.config with no joy)

At the same time that an entry is written to say the cache has been
cleared,
the performance monitor registers requests /second at 286,000,000

If anyone has experienced similar issues, can shed some light or point me
in
the right direction it would be greatly appreciated.

Kind Regards,

Darren

Jun 23 '06 #2
Thanks for your reply.

The logic always checks if the cache item exists and repopulates if
necessary. The code worked fine in 1.1 and didn't change when we moved to
2.0. The cache doesn't appear to be repopulating - if an exception occurs the
details are e-mailed to us. The details we receive would suggest that the
cache is empty.

I have been looking through the event log but there is nothing to suggest
asp.net is being recycled.

"bruce barker (sqlwork.com)" wrote:
check the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.

-- bruce (sqlwork.com)

"Darren Newton" <Darren Ne****@discussi ons.microsoft.c om> wrote in message
news:2D******** *************** ***********@mic rosoft.com...
Last month we upgraded our production server from .net 1.1 to 2.0. We have
seen some odd behaviour that we do not know how to fix.

It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback
that
writes an entry to the event log to see if the Cache is cleared. It
appears
that it is. This happens (randomly) several times a day. I changed our
global
entries to use Application state however this just seemed to amplify the
problem.

Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?

I do not know if the cache is being reset, causing the application to
crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandled ExceptionPolicy
enabled="true"
attribute to the web.config with no joy)

At the same time that an entry is written to say the cache has been
cleared,
the performance monitor registers requests /second at 286,000,000

If anyone has experienced similar issues, can shed some light or point me
in
the right direction it would be greatly appreciated.

Kind Regards,

Darren


Jun 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2196
by: Wescotte | last post by:
Here is a small sample program I wrote in PHP to help illustrates problem I'm having. The data base is using DB2 V5R3M0. The client is WinXP machine using the iSeries Client Access Driver ver 10.00.04.00 to connect to the database. The problem is that executing the exact same SQL select statement more than twice int a row stops produces results. The first two instances will always produce the correct results but after that it will simply...
4
1606
by: Gav | last post by:
Hi all, I'm having this strange problem where, in a web app, I have 2 different links to a different form. One is just a straight forward link the other is a bit more complicated because it gets there from a user control I wrote to display a menu. However both call the page in the same way using window.open('page.aspx','_top'); The problem is that:.... The page it calls, in the page load, checks to see if a session variable is null,...
1
1218
by: Mike Trebilcock | last post by:
I have a web app that builds a tree from a database. The tree is built on demand when the user POSTs the page back to the sever. The server maintains a copy of the current tree in a session object. This all works fine on the development server but I have a problem on my live server (IIS6.0 ASP.NET 1.1). When the user posts the page back the request is not getting to ASP.NET. When tracing is enabled there is no entry. However the...
3
1810
by: Michael Meckelein | last post by:
Hello, I run into trouble move down a selected item in a listbox. The code moving down the item is the following one: for (int j = lv.SelectedItems.Count-1; j >=0; j--) { ListViewItem moveItem = lv.SelectedItems; selIdx = moveItem.Index; // ignore movedown of last item
15
2470
by: bvdb | last post by:
Hello, my web-application uses two frames, one with a list of database records, one with a record detail view. From the detail view there is "mark" function that will mark the respective record in the list frame (with a special color). Now this mark function is meant to toggle the mark status in the list frame, i.e. switch it on with the first click and off with the second. Problem is, the marking works, but the second click will not have...
9
1174
by: abcd | last post by:
class Foo: def __init__(self, name, data=): self.name = name self.data = data def addData(self, val): self.data.append(val) f = Foo('a')
0
1199
by: Gwl | last post by:
I made some test to mesure the c# read perfomance on binary file and I made some curious discovery. Except for some minor details, the following is the code I used to read the file: byte buffer = new byte; FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None, fileStreamBufferSize, fileOptions); BinaryReader stream = new BinaryReader(fileStream);
8
5297
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples. (Sorry, long email) The first two examples are behaving normal, the thirth is strange....... I wrote the following flabbergasting code: #-------------------------------------------------------------
4
1727
by: Carlo Chiari | last post by:
Hi devs, in my application I need to update a simple text file every time the user checks an item of a radio group. I use AJAX method to do this stuff. In the start page I have this code for evely row: <td><input type="radio" name="CheckMe" onClick='UpdateRecipeID(3);'/></ td>
0
8240
marktang
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...
0
8175
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,...
0
8625
jinu1996
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...
0
8482
tracyyun
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...
1
6111
isladogs
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...
0
4082
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...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
bsmnconsultancy
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...

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.