Hey,
(Sorry if the thread has been posted twice!)
I'm using the System.Web.Cach ing.Cache object in my Win App and
basically, it's great!
I use a sliding expiration TimeStamp to the object I put in the Cache.
When I try and get the object after it's sliding expiration time I get
null (as excepted of course),
But the problem is that the memory is never cleaned - my application's
memory just keeps on growing event after the object expiration time is
exceeded!
I tried event calling GC.Collect(), but still had no luck as my Win
App's memory did not lower at all...
Is there something I'm forgetting?
Thanks ahead
--sternr 2 2725
"applicatio n's memory just keeps on growing event after the object
expiration time is exceeded"
In my web application, web caching locate memory asp_net process not windows
application proccess.. i didn't test cache with win application but may be
the memory problem not related to cache.
"sternr" <St****@gmail.c om> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . Hey, (Sorry if the thread has been posted twice!)
I'm using the System.Web.Cach ing.Cache object in my Win App and basically, it's great! I use a sliding expiration TimeStamp to the object I put in the Cache. When I try and get the object after it's sliding expiration time I get null (as excepted of course), But the problem is that the memory is never cleaned - my application's memory just keeps on growing event after the object expiration time is exceeded! I tried event calling GC.Collect(), but still had no luck as my Win App's memory did not lower at all... Is there something I'm forgetting?
Thanks ahead
--sternr
Hi,
"sternr" <St****@gmail.c om> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . Hey, (Sorry if the thread has been posted twice!)
I'm using the System.Web.Cach ing.Cache object in my Win App and basically, it's great!
A cache is intended to be used in a web environment, why are you using it in
a windows app?
I tried event calling GC.Collect(), but still had no luck as my Win App's memory did not lower at all... Is there something I'm forgetting?
That Cache is intended to be used in a web app, not in a win app. Somebody
is holding a reference to the object, that's why it's not collected.
Why you need to use a Cache in a win app?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matthew Bates |
last post by:
Hi,
I've been using PHP for a while now and I'm beginning to migrate to
PHP5. So far, I'm impressed.
I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.
|
by: Dave Griffiths |
last post by:
Hi all
Very new to JavaScript, I am trying to cache a number of images as the
page loads, is there a max number of images or memory usage before the
browser stops caching.
My PC has 1G ram so if it's a physical memory constraint then I think I am
away from that. I am trying to cache about 600K images, (this if for an
intranet so the page load time is fast) but I need the speed of cached
images for the page to work correctly. I seem to...
|
by: Greg Collins [MVP] |
last post by:
Hi, I couldn't find what I was looking for by searching the newsgroup, but perhaps these have already been discussed somewhere. This is a bit long with a lot of interrelated questions.
What I've got is a decodeImage.aspx page that gets called to decode base64 encoded images and return them as displayable images to a Web page. The ASPX page is passed two parameters, "file" and "img". The "file" parameter specifies and XML file on the Web...
|
by: spacehopper_man |
last post by:
I'm considering ditching all use of Session state in favour of
Application state.
This is because - from what I can work out - it will be more memory
efficient for me.
I have three questions:
1) When is memory used for Session State freed (or essentially freed)?
- if ever...
|
by: michaeltorus |
last post by:
Is the only way to cache data in Memory, such as a Dom Document, to use System.Web.Caching namespace?
I can't seem to find anything else, but what if you want to cache something in memory and you don't have a web app ?
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
| |
by: Raj |
last post by:
What is the purpose of file system caching while creating a tablespace?
Memory on the test server gets used up pretty quickly after a user
executes a complex query(database is already activated), after some
investgation i found out that most of it being consumed by filesystem
caching... thanks to Liam and Phil Sherman for their valuable
suggestions. Is it safe to turn off filesystem caching on every
tablespaceon the server(i.e. DIO) ??...
|
by: LRK |
last post by:
Earlier this week we set up a second application pool to be able to implement
trusted connections between ASP.NET apps and a SQL Server database on a
different server.
The trusted connection is working, but there seems to be a memory leak.
After paging through about 6 web pages that access the database, we're
getting the following application error (in Event Viewer):
Unable to get the private bytes memory limit for the W3WP process....
|
by: George Sakkis |
last post by:
I've been trying to track down a memory leak (which I initially
attributed erroneously to numpy) and it turns out to be caused by a
memory mapped file. It seems that mmap caches without limit the chunks
it reads, as the memory usage grows to several hundreds MBs according
to the Windows task manager before it dies with a MemoryError. I'm
positive that these chunks are not referenced anywhere else; in fact if
I change the mmap object to a...
|
by: Phil Sandler |
last post by:
All,
I am designing a system that will involve an IIS/ASP.Net application
server. The main purpose of the application server will be to load
large amounts of static data into memory and do fast lookups on it.
The total cache size at the time of first installation will be roughly
350MB, but may grow to as large as 10GB over the next five years.
My questions:
|
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: 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,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |