# Astersik 20 Consume lots of Memory

**URL:** <https://community.asterisk.org/t/astersik-20-consume-lots-of-memory/106495>\
**Category:** Asterisk Support\
**Created:** [January 21, 2025, 8:50pm UTC](https://community.asterisk.org/t/astersik-20-consume-lots-of-memory/106495 "2025-01-21T20:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wasim](https://avatars.discourse-cdn.com/v4/letter/w/49beb7/32.png) [@wasim](https://community.asterisk.org/u/wasim)\
**Post date:** [January 21, 2025, 8:50pm UTC](https://community.asterisk.org/t/astersik-20-consume-lots-of-memory/106495/1 "2025-01-21T20:50:14Z")

</div>

I am observing a significant difference in memory consumption after upgrading from Asterisk v16 to v20, despite the lack of active calls. Here’s an analysis of memory data for **serverA** and **serverB** :

|Status | serverA | serverB |

|total Calls proceed| 15000 | 65 |  
|Total memory | 31840 | 31840 |  
|used | 2515 | 2438 |  
|free | 1200 | 466 |  
|shared | 607 | 607 |  
|cache | 29186 | 29996 |  
|available | 29325 | 29402|

1. Can somebody explain this behavior?
2. Is there any solution to fix this?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [January 21, 2025, 9:53pm UTC](https://community.asterisk.org/t/astersik-20-consume-lots-of-memory/106495/2 "2025-01-21T21:53:05Z")

</div>

Please explain how these figures support that statement.

There is almost no difference in the memory usage, and with less than 10% of memory unavailable, the memory situation indicates the machine is seriously overprovided with memory.

By design Linux (and the Windows NT family) aim to run with only small amounts of memory free. Cache represents things like readonly code, that is being kept in case needed again, and output files, which have been written to disk, but for which the OS doesn’t know that they won’t be read back, in the near future.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [February 20, 2025, 9:53pm UTC](https://community.asterisk.org/t/astersik-20-consume-lots-of-memory/106495/3 "2025-02-20T21:53:20Z")

</div>

Closed on February 20, 2025, 9:53pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
