# Memory readonly percentage not working

**URL:** https://forum.weaviate.io/t/memory-readonly-percentage-not-working/1384
**Category:** General
**Tags:** bug, developer-experience
**Created:** [February 6, 2024, 11:21am UTC](https://forum.weaviate.io/t/memory-readonly-percentage-not-working/1384 "2024-02-06T11:21:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dharanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dharanish/32/659_2.png) [@Dharanish](https://forum.weaviate.io/u/Dharanish)
#### Post date: [February 6, 2024, 11:21am UTC](https://forum.weaviate.io/t/memory-readonly-percentage-not-working/1384/1 "2024-02-06T11:21:53Z")

</div>

Hi Team, I configure weaviate with  
MEMORY\_WARNING\_PERCENTAGE: 60 MEMORY\_READONLY\_PERCENTAGE: 70  
in weaviate 1.21.2. But Even crossing 80% of memory I doesn’t show any warning or dont go to read-only. Does it not support for the above version or something else to do ?

---

<div class="post-metadata">

### Author: ![mnkasikci](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mnkasikci](https://forum.weaviate.io/u/mnkasikci)
#### Post date: [February 6, 2024, 2:33pm UTC](https://forum.weaviate.io/t/memory-readonly-percentage-not-working/1384/2 "2024-02-06T14:33:41Z")

</div>

Are you sure you set the environment variables correctly? Can you run the following command in your docker desktop?

* * *

```
echo $MEMORY_WARNING_PERCENTAGE

```

* * *

Also, can you see if this was correctly setup from the logs (which show up right after initialization)

---

<div class="post-metadata">

### Author: ![Dharanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dharanish/32/659_2.png) [@Dharanish](https://forum.weaviate.io/u/Dharanish)
#### Post date: [February 7, 2024, 11:11am UTC](https://forum.weaviate.io/t/memory-readonly-percentage-not-working/1384/3 "2024-02-07T11:11:04Z")

</div>

Hi @mnkasikci @DudaNogueira , i checked that the variables are working correctly. but Radio() function in memwatch Monitor always return 0. So that even if the currently memory usage \> 80% it always show 0.00%.  
I placed a logger inside memoryUseWarn function . It shows

{“action”:“MEMORYUSAGEWARN METHOD”,“level”:“warning”,“msg”:“memory usage currently at 0.00%, threshold set to 80.00%”,“path”:“/var/lib/weaviate”,“time”:“2024-02-07T11:03:39Z”}  
{“action”:“MEMORYUSAGEWARN METHOD”,“level”:“warning”,“msg”:“memory usage currently at 0.00%, threshold set to 80.00%”,“path”:“/var/lib/weaviate”,“time”:“2024-02-07T11:04:09Z”}
