# Memory usage is nearly 100%!

**URL:** <https://community.wowza.com/t/memory-usage-is-nearly-100/40427>\
**Category:** Wowza Streaming Engine\
**Created:** [July 11, 2014, 4:54pm UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427 "2014-07-11T16:54:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 11, 2014, 4:54pm UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/1 "2014-07-11T16:54:22Z")

</div>

I have WowzaStreamingEngine 4.0.4, no incoming or outgoing streams at the moment, and Wowza Streaming Engine Manager usage graph says that 15.49GB of 16GB (nearly 99%) is being used. This is constant without fluctuation.

I sincerely hope that the graph is very wrong. Otherwise, something is very wrong with my server. Has anyone else seen this? Any insight into why I do?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [July 12, 2014, 11:52am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/2 "2014-07-12T11:52:04Z")

</div>

Hi there, can you please provide some more information about your setup and usage?

For example, are you using any custom modules?

Thanks.

salvadore

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [July 15, 2014, 11:31am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/3 "2014-07-15T11:31:26Z")

</div>

Hi,

You have actually used 14849(used) - 13544(cached) = 1305GBytes

The cached amount is how much the OS is caching data, more than likely files, and it frees this when needed by applications.

Andrew.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [July 16, 2014, 10:09am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/4 "2014-07-16T10:09:12Z")

</div>

Hi,

Yes, you are right, it should read 1305MB and it should also have the buffers amount added; so another 148MB is available.

This is just how Linux reports the memory usage. The cached memory is usually what is used by the OS to cache file writes & reads to and from the hard drives. If you turn this off, you will most likely have performance issues. Buffers are normally used by the network adaptors to buffer incoming and outgoing traffic.

High cache values indicate that there is a lot of disk io occurring. This would be the case if you are running VOD applications or have a lot of recording going on. If the cache is consuming all of the memory, it may be indicating that you need faster disks or more memory.

Wowza Streaming Engine can only see the total and used values and reports based on these. It cannot see the cached or buffered values so cannot take these into account.

Roger.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [July 18, 2014, 8:10am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/5 "2014-07-18T08:10:54Z")

</div>

Hi,

The OS does keep stuff in the cache for a long time. I’m not even sure it clears it out until the memory is needed elsewhere.

I guess as long as you have some free memory listed then it shouldn’t be an issue.

You can run the following command as root which will clear the cache.

```auto
sync; echo 3 > /proc/sys/vm/drop_caches

```

> **Note:** You shouldn’t use this command when the server is busy as it stops everything else while the command runs and can take a few seconds to complete if the cache is really full.

Roger.

---

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 15, 2014, 6:39am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/6 "2014-07-15T06:39:56Z")

</div>

> Hi there, can you please provide some more information about your setup and usage?
> 
> For example, are you using any custom modules?
> 
> Thanks.
> 
> salvadore

No, I am not using any custom modules. My server specs are:

Dedicated Dual Intel Quad Core L5420 2.5 Ghz Server with 16GB RAM. OS is Ubuntu 13.10 64-bit.

---

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 15, 2014, 6:50am UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/7 "2014-07-15T06:50:04Z")

</div>

I used the command line **free -m** , and it showed:

**total-------used------free----shared----buffers-----cached**

**16048----15813-----234----0-----------148---------13544**

When I stopped the Wowza Streaming Engine service:

**total------used-------free----shared—buffers----cached**

**16048----14849-----1199—0---------148--------13544**

Not a huge difference with WSE running or not running.

---

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 15, 2014, 1:47pm UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/8 "2014-07-15T13:47:57Z")

</div>

> Hi,
> 
> You have actually used 14849(used) - 13544(cached) = 1305GBytes
> 
> The cached amount is how much the OS is caching data, more than likely files, and it frees this when needed by applications.
> 
> Andrew.

I believe that that should be 1305MB (about 1.3GB).

So, in essence, when Wowza needs more memory, it has the other 13+ Gigs to use? Is this common? What are the pros and cons of having this memory cached? If this is the only (or best) way, I hate that the Wowza dashboard looks like there is no memory left. I would like to know what really is being used.

---

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 15, 2014, 1:58pm UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/9 "2014-07-15T13:58:27Z")

</div>

Okay, this website offers a very clear explanation: [http://www.linuxatemyram.com/](http://www.linuxatemyram.com/)

Looks like the cached memory actually helps applications run faster. Too bad that the Wowza dashboard did not reflect this (used - cached = memory used). Maybe that can be in the next upgrade?

---

<div class="post-metadata">

**Author:** ![Justin\_McGee](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_McGee](https://community.wowza.com/u/Justin_McGee)\
**Post date:** [July 15, 2014, 2:18pm UTC](https://community.wowza.com/t/memory-usage-is-nearly-100/40427/10 "2014-07-15T14:18:52Z")

</div>

> Hi,
> 
> Yes, you are right, it should read 1305MB and it should also have the buffers amount added; so another 148MB is available.
> 
> This is just how Linux reports the memory usage. The cached memory is usually what is used by the OS to cache file writes & reads to and from the hard drives. If you turn this off, you will most likely have performance issues. Buffers are normally used by the network adaptors to buffer incoming and outgoing traffic.
> 
> High cache values indicate that there is a lot of disk io occurring. This would be the case if you are running VOD applications or have a lot of recording going on. If the cache is consuming all of the memory, it may be indicating that you need faster disks or more memory.
> 
> Wowza Streaming Engine can only see the total and used values and reports based on these. It cannot see the cached or buffered values so cannot take these into account.
> 
> Roger.

This server is used by a church who streams 2-3 times /per week. I am trying to build a system that will allow me to stream other churches smoothly. Wowza archives the video on the server, but there is no io activity at the moment, as I am the only one with access to the archives at this point. Does the statement about high cache values still apply in this case?
