Hello Ashish,

I believe the eviction threshold is not configured at the Region level, but
through the Resource Manager [1] instead. The link I've just provided
contains information about how it works and how it can be configured. Since
seem to be using a programmatic approach to configure the client
application, you can use the following snippet of code to change the
default eviction heap percentage:

ClientCache c = new ClientCacheFactory()
    .set("log-level", "debug")
    .create();
c.getResourceManager().setEvictionHeapPercentage(60);


Hope this helps.
Cheers.

[1]:
https://geode.apache.org/docs/guide/112/managing/heap_use/heap_management.html

On Tue, 14 Jul 2020 at 15:02, aashish choudhary <
[email protected]> wrote:

> Hi,
>
> I am trying to enable client side caching with geode using
> CACHING_PROXY_HEAP_LRU region shortcut. However I am not sure how this sets
> the threshold on the client side.
> clientCache.createClientRegionFactory(ClientRegionShortcut.
> CACHING_PROXY_HEAP_LRU)
>
>   .setPoolName("Pool1")
>   .create("Test");
>
>
>
> I tried to enable fine level log on the client side and could see that
> evictionThreshold is set to 80. Is it possible to change it on the client
> side lets say to 60-50?
>
>
>
>
> [debug 2020/07/14 19:00:52.996 IST <Distributed system shutdown hook>
> tid=0xc] Removed Memory MXBean notification listenerHeapMemoryMonitor
> [thresholds=MemoryThresholds@[2143571436 maxMemoryBytes:1789919232,
> criticalThreshold:0.0, criticalThresholdBytes:0,
> criticalThresholdClearBytes:-35798384, evictionThreshold:80.0,
> evictionThresholdBytes:1431935385, evictionThresholdClearBytes:1396137000],
> mostRecentEvent=MemoryEvent@548795052
> [Member:xxxx(18348:loner):62075:c147854d,type:HEAP_MEMORY,previousState:DISABLED,state:CRITICAL_DISABLED,bytesUsed:6917096,isLocal:true,thresholds:MemoryThresholds@[2143571436
> maxMemoryBytes:1789919232, criticalThreshold:0.0, criticalThresholdBytes:0,
> criticalThresholdClearBytes:-35798384, evictionThreshold:80.0,
> evictionThresholdBytes:1431935385,
> evictionThresholdClearBytes:1396137000]], criticalToleranceCounter=0,
> evictionToleranceCounter=0]
>
>
> Thanks,
>
> Ashish
>


-- 
Ju@N

Reply via email to