473,671 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Cache object hanging webserver

Hi,
I'm using the Cache object to persist some values between pages. I'm
setting the expiration for 2 minutes. I'm actually storing Bitmap streams in
the cache. In this way, one page can draw an image and store it and another
page can be responsible for streaming it to the browser.

This approach works well in that the Bitmap is correctly stored, the
other page can read the data and stream it correctly. Once streamed I do not
want to dispose of the Bitmap, I want it to persist in the Cache for the
next 2 minutes. This is because I have DHTML on my page that requests an
image multiple times.

My problem: sometimes the webserver stops servicing requests. This is
almost immediately evident on my web-hosting provider. If I run the same
code on my development box then I can duplicate the behaviour by hammering
the web-page using ACT. At various times (after 4000+ requests) the serviced
requests flat-line (i.e. nothing is serviced). At this point the web-server
stops servicing any requests.

My assumption: I assume that I am hogging resources, however, I would
expect resources used in the cache to be released. I've looked at the state
of the system using Perfmon and do not see anything that rings alarm bells.

Has anyone else experienced similar behaviour when using the Cache object?
Does anyone have any good suggestions regarding how to prevent this from
happening or concretely confirm that it is the use of the Cache object that
is causing this problem?

Thanks,
Neil
Nov 17 '05 #1
0 1179

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

Similar topics

2
1382
by: bigL | last post by:
first time I post/ask something in this group here's the problem I use ASP / VBScript (we only use MS licenses) when I make some changes in a asp page and then want to see the changes I've made : in 99% of the cases nothing happens has to do with the webserver cache refresh - says our webmaster I searched on the internet and found these solutions :
0
2482
by: obhayes | last post by:
Hi All, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the webserver (therefore do not intend to use the session object- as you cannot gaurantee which server the user will go to). I want to store a small value (e.g. a Y/N value or an Id) on the client machine for the duration of their browsing session,...
1
4852
by: boxim | last post by:
hi all, I'm having a few problems whereby my application is hanging when using the Invoke method of a form's control. Basically, when a user clicks a button on the form, it calls a remote function, which in turn fires an event that is caught by the form. The form then need to add a value passed in the event to a form object, however, when using the Invoke method, it just hangs.
4
1661
by: NWx | last post by:
Hi, I' trying to implement a callback method when a cache object expires I want to do this to automatically logout user after a timeout (for demo purposes) My thought is, when user logon, create a cache object which expires after, let's say, 15 minutes, and in that moment, to direct user to a page telling the time to run demo app was expired.
15
4753
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
1
2711
by: William Sullivan | last post by:
I'm trying to nail down some issues with the cache in my application. Currently, I have an object that stands between my business logic and database logic called CacheLogic (cute, no?). Global.asax.cs creates it in Application_Start, initializes it and places it in the cache. During initialization, CacheLogic retrieves data from the DB logic layer and caches it with removal callbacks set. Whenever an object in the business logic layer...
15
2411
by: Joe Fallon | last post by:
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with 1000 items it might use 100KB. How do I measure the amount of memory used once the class is loaded? Thanks! -- Joe Fallon
2
1957
by: addicted2rpg | last post by:
For background on this problem, see: http://support.microsoft.com/kb/q249232/ I essentially get a IHTMLWindow2 object, IHTMLDocument2 object, etc.. from an HWND of an internet explorer process. You can think of it as "hooking", but it probably isn't true hooking since I'm not altering any normal calls with my own. Now, I got some image recognition code I want to use with some browser input. I don't want to use URLDownloadToFile();...
1
1242
by: Vernon Wenberg III | last post by:
I have a script that processes a lot of data. Ideally it would be run from the CLI, however I want to run it from a browser, but I don't want the browser hanging on me forcing me to restart from scratch. My question is, how do I output data to the browser when something is processed when it is processed instead of having all the output come at once when the script is done? Is there a set amount of time where the page processing the...
0
8476
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
8820
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...
1
8598
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,...
0
7433
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, 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...
1
6223
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
4224
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
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1809
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.