# Huge resource usage for audio-only sessions (both memory and CPU)

**URL:** <https://openvidu.discourse.group/t/huge-resource-usage-for-audio-only-sessions-both-memory-and-cpu/3178>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [June 25, 2021, 8:33pm UTC](https://openvidu.discourse.group/t/huge-resource-usage-for-audio-only-sessions-both-memory-and-cpu/3178 "2021-06-25T20:33:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rush](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/rush/32/1148_2.png) [@Rush](https://openvidu.discourse.group/u/Rush)\
**Post date:** [June 25, 2021, 8:33pm UTC](https://openvidu.discourse.group/t/huge-resource-usage-for-audio-only-sessions-both-memory-and-cpu/3178/1 "2021-06-25T20:33:55Z")

</div>

I only ever used audio-only sessions. So far the entire feature is in beta so we had deployment running since December with development and beta-testing going on. Now it seems OpenVidu server is using around 32 gigabytes of physical memory and 64G of virtual (allocated). It’s around 25% of the server’s available RAM.

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/f/f5d155c21d30746e234ac9ac9f32e65a7c629100.png)

Kurento media server is actually way better. It only takes 711MB of physical RAM but also around 34G of virtual.

We also had a test session today with 12 users using the voice-chat. Kurento’s CPU usage was going all the way to around 1.2 core (120%). The server has in total of 32 cores (64 hyperthreaded) so there’s still space to grow … but that said for audio-only it’s much more CPU usage than what I expected.

Here [OpenVidu load testing: a systematic study of OpenVidu platform performance | by OpenVidu | Medium](https://openvidu.medium.com/openvidu-load-testing-a-systematic-study-of-openvidu-platform-performance-b1aa3c475ba9) they conducted VIDEO + AUDIO testing and were able to get to around 182 people / browsers on a 16 core machine.

In my case everybody is both a subscriber and a publisher - but shouldn’t audio-only help?

Also is it possible for the server to merge all audio streams into one?

Is OpenVidu server known to leak memory?

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [June 29, 2021, 11:56am UTC](https://openvidu.discourse.group/t/huge-resource-usage-for-audio-only-sessions-both-memory-and-cpu/3178/2 "2021-06-29T11:56:24Z")

</div>

We’ve never noticed a memory leak like this in OpenVidu. How much time was the server running, do you have any way to reproduce it?
