# High memory usage by Asterisk on Centos 7

**URL:** <https://community.asterisk.org/t/high-memory-usage-by-asterisk-on-centos-7/47860>\
**Category:** Asterisk Support\
**Created:** [January 5, 2015, 9:54am UTC](https://community.asterisk.org/t/high-memory-usage-by-asterisk-on-centos-7/47860 "2015-01-05T09:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [January 5, 2015, 9:54am UTC](https://community.asterisk.org/t/high-memory-usage-by-asterisk-on-centos-7/47860/1 "2015-01-05T09:54:26Z")

</div>

Hi forum,

Recently I installed Asterisk on Centos 7 and every 4-5 days It has a high memory usage.

![](http://i.imgur.com/aj4ur3d.png)

[code]free -m  
total used free shared buffers cached  
Mem: 3777 3652 124 180 0 174  
-/+ buffers/cache: 3477 299  
Swap: 3983 28 3955

top

15023 asterisk 20 0 9911772 3,000g 8000 S 37,9 81,3 277:07.32 asterisk[/code]

81,3% memory usage by asterisk.

Then, I must restart asterisk service in order to return into a normal state.

Regards.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [January 5, 2015, 10:40am UTC](https://community.asterisk.org/t/high-memory-usage-by-asterisk-on-centos-7/47860/2 "2015-01-05T10:40:11Z")

</div>

You definitely seem to have a memory leak, but there is no information in your report which might give a clue as to what is leaking and whether it may already be fixed.,

As well as providing version information and information about how you use Asterisk, you should also consider building with MALLOC\_DEBUG and the use of valgrind.

The memory leak increment and what is happening at the time of increments is likely to be useful.

---

<div class="post-metadata">

**Author:** ![sharififar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sharififar](https://community.asterisk.org/u/sharififar)\
**Post date:** [October 3, 2018, 12:32pm UTC](https://community.asterisk.org/t/high-memory-usage-by-asterisk-on-centos-7/47860/3 "2018-10-03T12:32:54Z")

</div>

Hi,

I was working on it for more than 6 months, this is not a memory cache issue and you CANNOT fix it by “sync; echo 3 \> /proc/sys/vm/drop\_caches”. It’s only the kernel issue that fixed in kernel 4.x lt. So you can use this instruction for upgrade your kernel: [https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/](https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/)

I hope it will be helpful everyone has this issue.
