473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 LegacyUnhandledExceptionPolicy 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 1168
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****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.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 LegacyUnhandledExceptionPolicy
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****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.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 LegacyUnhandledExceptionPolicy
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
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...
4
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...
1
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...
3
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...
15
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...
9
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
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...
8
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....
4
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
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,...
0
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...

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.