Overview

SIP calls stress test is carried out according to the following scenario:

  1. Server 1 creates SIP calls from specified range of SIP accounts to the specified SIP account on server 2 with 1 second interval.
  2. Server 2 makes SIP calls from specified range of SIP accounts to the specified SIP account.

SIP registration stress test is carried out according to the following scenario:

  1. Server 1 creates connections for SIP calls from specified range of SIP accounts to the specified SIP account on server 2 with 1 second interval.
  2. Server 2 connects to SIP server and registers on it.

SIP server to use as proxy for SIP calls is necessary to carry out those tests. The SIP server should be set up as follows:

SIP accounts password is set in Console web application source code:

    var password = "Abcd1111";

Stress SIP calls test

1. For test we use:

2. Open Console application over HTTP (not HTTPS!) http://test1.flashphoner.com:9091/client2/examples/demo/streaming/console/console.html

3. Install ACAO extension, allow Cross-Origin-Resource-Sharing

4. Enter server name test1.flashphoner.com and press 'Add node'. This server will be tested. Then, add the server test2.flashphoner.com, which will create SIP calls on server to test.

5. Select test2.flashphoner.com in Console application, press 'Register' button, set SIP server registration parameters:

6. Press 'Stress Call', set the test parameters:

7. Press 'Stress Call' button. The test begins.  In 'Show' dropdown select 'TESTS' and press 'Apply'. The information about test passing will be displayed on the page:

8. Current servers load information is displayed at top right corner

After finishing the test, it is recommended to restart WCS on both servers.

Stress SIP registration test

1. For test we use:

2. Open Console application over HTTP (not HTTPS!) http://test1.flashphoner.com:9091/client2/examples/demo/streaming/console/console.html

3. Install ACAO extension, allow Cross-Origin-Resource-Sharing

4. Enter server name test1.flashphoner.com and press 'Add node'. This server will be tested. Then, add the server test2.flashphoner.com, which will create connections to server to test.

5. Select test2.flashphoner.com in Console application, press 'Stress register' button, set SIP registration parametes:

7. Press 'Start' button. The test begins.  In 'Show' dropdown select 'TESTS' and press 'Apply'. The information about test passing will be displayed on the page:

8. Current servers load information is displayed at top right corner

After finishing the test, it is recommended to restart WCS on both servers.

Tuning recommendations

If the load test was failed, it is recommended to change the following setver settings.

1. In wcs-core.properties file extend heap memory limits. It is recommended to set the limit in half of physical RAM, for example, set 16 Gb while physical RAM is 32 Gb. Make sure you have enough RAM: 

-Xmx16g -Xms16g