Questions tagged [evict]

To evict a part of memory is to clear its contents to make space for new data

52 questions
2
votes
0 answers

com.netflix.eureka.InstanceRegistry never evict stale instances

registred but died instances of services will not be evicted by the InstanceRegistry. The timer instance is started but the method isLeaseExpirationEnabled() always returns false. this stems from these lines: boolean leaseExpirationEnabled =…
2
votes
1 answer

cutom ehcache evict policy with spring

If we want to custom evict policy besides LRU LFU FIFO, the way docs recommanded is to implement interface Policy then set MemoryStoreEvictionPolicy like: manager = new CacheManager(EHCACHE_CONFIG_LOCATION); cache =…
cedrics
  • 761
  • 1
  • 6
  • 7
1
vote
1 answer

Custom Eviction Policy in Redis

I have been reading and searching for Java-based Redis Clients and OMs that allow one to communicate with Redis Server. So far, I have understood that we can only set one of the predefined eviction policies and the Redis server handles the eviction…
Belf
  • 35
  • 1
  • 6
1
vote
1 answer

If requested memory is "the minimum", why is kubernetes killing my pod when it exceeds 10x the requested?

I am debuggin a problem with pod eviction in Kubernetes. It looks like it is related to a configuration in PHP FPM children processes quantity. I assigned a minimum memory of 128 MB and Kubernetes is evicting my pod apparently when exceeds 10x that…
JorgeeFG
  • 5,651
  • 12
  • 59
  • 92
1
vote
1 answer

Policy pod start at eviction

I have a problem: I use eviction policies (evict-soft and evict-hard) and when my pods are being evicted out beacause of resource lack on one node, pod dies and starts on another node, so, that during this time service is down. What can I do to make…
Stas Fanin
  • 11
  • 1
1
vote
2 answers

Updating to Hibernate 5.1 from 3.6 produce Non-entity object instance passed to evict exception

I was working with a hibernate 3.6 project which use annotations for mapping and now I migrate it to hibernate 5.1 and i have this run time exception Non-entity object instance passed to evict Below is the call to…
Lilac
  • 580
  • 1
  • 7
  • 25
1
vote
0 answers

Large amount of redis keys are evicted unexpectedly even though memory not reach max configuration

I am experiencing a very strange case happen in production with redis, a large amount of redis keys are evicted unexpectedly even though memory not reach max configuration. Current redis setting is max mem = 7GB, volatile-ttl. Most of the keys are…
longbkit
  • 1,218
  • 1
  • 13
  • 20
1
vote
3 answers

How to configure guava cache to remove item after a read?

I would like to remove (invalidate) an item after it was read from a cache. So item should be present in a cache until a first read. I've tried adding expireAfterAccess(0, TimeUnit.NANOSECONDS) but then cache is not populated. Is there any way to…
pixel
  • 24,905
  • 36
  • 149
  • 251
1
vote
2 answers

Spring Redis Cache not evicting

The following works (results in the evict being performed): fooController { @ApiEndpoint public delete(id) { fooService.deleteFoo(id) } } fooService { @CacheEvict(value = "cache1", key = "#id") public void deleteFoo(Long…
user3133300
  • 607
  • 4
  • 13
  • 23
1
vote
0 answers

When should a Guava LoadingCache with expireAfterWrite set call cleanUp()?

This seems like it would be a simple thing to discover on my own, but here I am. The base Guava Cache Interface only has this to say about cleanUp(): void cleanUp() Performs any pending maintenance operations needed by the cache. Exactly which…
Patrick M
  • 10,547
  • 9
  • 68
  • 101
1
vote
2 answers

Infinispan: How to get notified when entry is evicted from backing singleFileStore

The standard eviction event fires when a cache entry is evicted from the in-memory cache. In our case we need a notification only when it is evicted from the restart-persistent disk cache which is configured to be a SingleFileStore. Is that even…
pandhi
  • 43
  • 4
1
vote
1 answer

Objects in .NET MemoryCache are beeing evicted unexpectedly

I am having some kind of strange behavior using .NET MemoryCache in an ASP.NET application. The problem is, that objects will be evicted after a view minutes and there seems to be no reason for that. The memory limits are set in the web.config: …
DrDrakken
  • 37
  • 7
1
vote
1 answer

ExpireAfterWrite does not seem to work

I am trying to use Google's Guava Cache and I am just testing it with expireAfterWrite with 1 minute intervals. In the application I am working on there are hundreds of users. So my understanding is that when the first person accesses the cache, we…
Johnathan Au
  • 5,244
  • 18
  • 70
  • 128
1
vote
1 answer

How are lists treated in terms of eviction in redis?

The problem I'm facing is that i want to make sure lists are evicted in it's entirety. I.e. make sure that entries in the list is not separate evicted. We're looking to use the LRU eviction algorithm. I realize a list is known by it's key, so that…
Crypth
  • 1,576
  • 18
  • 32
1
vote
1 answer

NHibernate Evict - EntityKeys is readonly so object won't evict

A vendor supplied code using NHibernate... and I'm not familiar at all with NHibernate. At one point in the code, it is calling the Flush() and it is throwing an error because one of the entities has a 1/1/0001 for a date value. I attempted to…