# Performance testing 1:N sessions

**URL:** <https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [June 25, 2020, 8:03am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295 "2020-06-25T08:03:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit.roy](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rohit.roy](https://openvidu.discourse.group/u/rohit.roy)\
**Post date:** [June 25, 2020, 8:03am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/1 "2020-06-25T08:03:02Z")

</div>

How can i perform load testing of a single Media Node with below scenario  
Test sessions with **topologies, such as 1:M** (1 Publisher and Multiple Subscribers. Only Publisher will be publishing Audio and Video with 320x240 resolution)  
I have  
- Openvidu server pro with 4 core  
**- Openvidu Media node with 8 core (C5.2X Large)**

I want to check the capacity, how many concurrent subscribers in a single session one Media node can handle.

In this table i can see how many “ **subscribers streams** ” can be managed in a server at the same time: (Reference is taken from [[this post](https://medium.com/@openvidu/openvidu-load-testing-a-systematic-study-of-openvidu-platform-performance-b1aa3c475ba9)])

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/5cd7f736906f52f25c30c60a9f629d4730a99d41.png)

If i could achieve somewhere around 500 - 600 subscribers with 8 core then it would be really great. Please suggest how can i do this?

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [June 25, 2020, 8:57am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/2 "2020-06-25T08:57:38Z")

</div>

Hello,

We performed test, the post you referenced, using openvidu-loadtest tool ([https://github.com/OpenVidu/openvidu-loadtest](https://github.com/OpenVidu/openvidu-loadtest))

In your use case, you should modify the webapp ([https://github.com/OpenVidu/openvidu-loadtest/tree/master/webapp](https://github.com/OpenVidu/openvidu-loadtest/tree/master/webapp)) to allow 1:M session

---

<div class="post-metadata">

**Author:** ![rohit.roy](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rohit.roy](https://openvidu.discourse.group/u/rohit.roy)\
**Post date:** [June 25, 2020, 9:29am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/3 "2020-06-25T09:29:53Z")

</div>

Hello,

After modifying the app.js file (for 1:M support) do i need to change in Jenkins code or some where else to pick the latest changes code.  
OR  
**No changes required in openvidu-loadtest tool**. I will just change the weapp/app.js file as per my need and I will deploy the webapp somewhere independently and during `Launch Test` i will pass the APP URL (URL where i hosted the webapp client) in Configuration parameters.

Can i use the master version or the specific one related to webapp as mentioned below  
[https://github.com/OpenVidu/openvidu-loadtest/tree/webcomponent\_loadtest](https://github.com/OpenVidu/openvidu-loadtest/tree/webcomponent_loadtest)

[https://github.com/OpenVidu/openvidu-loadtest/tree/webcomponent\_loadtest/selenium-test](https://github.com/OpenVidu/openvidu-loadtest/tree/webcomponent_loadtest/selenium-test)

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [June 25, 2020, 10:17am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/4 "2020-06-25T10:17:47Z")

</div>

The main difference between each branch is the webapp, so you can add your webpp in the branch you want and follow the README instructions.

---

<div class="post-metadata">

**Author:** ![rohit.roy](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rohit.roy](https://openvidu.discourse.group/u/rohit.roy)\
**Post date:** [June 25, 2020, 10:35am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/5 "2020-06-25T10:35:31Z")

</div>

Great, it meas i can host the “webapp code” somewhere else independently and can use the URL in command like this

cd /home/ubuntu/openvidu-loadtest/selenium-test  
mvn -Dtest=OpenViduLoadTest -DCONFIGURATION\_ **APP\_URL=https://url-where-i-hosted-the-webapp:PORT/** test

```auto

```

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [June 25, 2020, 10:54am UTC](https://openvidu.discourse.group/t/performance-testing-1-n-sessions/1295/6 "2020-06-25T10:54:20Z")

</div>

Sure, you can do that
