load testing

84 views
Skip to first unread message

Giacomo Andreani

unread,
Jun 25, 2020, 2:14:01 AM6/25/20
to Ant Media Server
Hello I am not able to make any load test.

I follow the instruction here

but many things are not clear.

1) Ant Media Server and Test Server are in the same server? I belive not! in this case i don't understand 

./run.sh -f output.mp4 -m publisher -n 1 #publishes output.mp4 to the server with default name myStream

2) I want test instance which has different 5080 port. How i can do?

Is there a better explication how to do this test?

i made this test which is not usefull ... (I CHANGE MY REAL IP). but i Put any IP the result is the same....


bash run.sh -m player -n 10 -i stress -s 1xxxxxxxx -u true

[-m, player, -n, 10, -i, stress, -s, 1xxxxxxxx, -u, true]

Settings:


- webSockAdr:1xxxxxxxx

- is sequre:false

- label:nolabel

- stream id:stress

- stream source:camera

- mode:PLAYER

- use ui:true

- port:5080

- verbose:false

- load:10

ws://1xxxxxxxx:5080/WebRTCAppEE/websocket

ws://1xxxxxxxx:5080/WebRTCAppEE/websocket

start

Leaving main method

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:NativeLibrary - Message:Loading native library: jingle_peerconnection_so

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:NativeLibrary - Message:Loading library: jingle_peerconnection_so

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:PeerConnectionFactory - Message:PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:JavaAudioDeviceModule - Message:createAudioDeviceModule

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:JavaAudioDeviceModule - Message:HW NS will not be used.

Jun 25, 2020 8:10:46 AM org.webrtc.Logging log

INFO: Tag:JavaAudioDeviceModule - Message:HW AEC will not be used.

Jun 25, 2020 8:10:46 AM io.antmedia.enterprise.webrtc.codec.VirtualVideoEncoderFactory getSupportedCodecs

INFO: getSupportedCodecs: H264 encoder factory: io.antmedia.enterprise.webrtc.codec.VirtualVideoEncoderFactory@56b575a1

Jun 25, 2020 8:10:46 AM io.antmedia.enterprise.webrtc.codec.VirtualVideoEncoderFactory getSupportedCodecs

INFO: getSupportedCodecs: H264 encoder factory: io.antmedia.enterprise.webrtc.codec.VirtualVideoEncoderFactory@56b575a1

Jun 25, 2020 8:10:46 AM io.antmedia.webrtctest.WebRTCManager lambda$initPeerConnection$1

INFO: Creating peerconnection hascode:894191102 time:1593065446520

Jun 25, 2020 8:10:56 AM io.antmedia.webrtctest.StatManager logStats

INFO: <- Logging stats ->

Jun 25, 2020 8:10:56 AM io.antmedia.webrtctest.StatManager logStats

INFO: stats: Number of Clients:0 Active Connections:0 Dropped Connections:0 Received Min frame period:2147483647ms, Max frame period: -2147483648ms, Mean frame period:0ms, cpu load: %0 time: 1593065456

Jun 25, 2020 8:10:56 AM io.antmedia.webrtctest.StatManager lambda$start$0

INFO: Seems all streams are stopped and breaking the stats loop

Jun 25, 2020 8:11:06 AM io.antmedia.webrtctest.StatManager logStats

INFO: <- Logging stats ->

Jun 25, 2020 8:11:06 AM io.antmedia.webrtctest.StatManager logStats

INFO: stats: Number of Clients:0 Active Connections:0 Dropped Connections:0 Received Min frame period:2147483647ms, Max frame period: -2147483648ms, Mean frame period:0ms, cpu load: %4 time: 1593065466

Jun 25, 2020 8:11:06 AM io.antmedia.webrtctest.StatManager lambda$start$0

INFO: Seems all streams are stopped and breaking the stats loop


Ant Media

unread,
Jun 26, 2020, 7:15:09 AM6/26/20
to andreani...@gmail.com, ant-medi...@googlegroups.com
Hi Giacomo Andreani,

You can pass IP or host address with -s flag.
You can change the port with -p flag.

./run.sh -f output.mp4 -m publisher -n 1 -s AMS_IP -p AMS_PORT


You can see all flag definitions at the and of the page.


PS: Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/
Regards,
Burak Kekec
, Giacomo Andreani <andreani...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/a90f0bb4-99fc-4d09-a151-d8d7ab79af01o%40googlegroups.com.
10939:1264838

jefferson bernardino

unread,
Jul 27, 2020, 2:09:38 PM7/27/20
to Ant Media Server
I've tried this with "-s" and "-p" and didn't worked form me, always showing the same message:
Seems all streams are stopped and breaking the stats loop

Ant Media

unread,
Jul 28, 2020, 4:18:38 AM7/28/20
to jeffer...@gmail.com, ant-medi...@googlegroups.com
Hi jefferson bernardino,

If you send your server ip I can check.

PS : Free or Paid one-on-one support and consultancy for your streaming project, please book at https://calendly.com/antmedia/
Regards,
Burak Kekec
, jefferson bernardino <jeffer...@gmail.com> wrote:

jefferson bernardino

unread,
Jul 29, 2020, 12:05:39 PM7/29/20
to Ant Media Server
Tks, I've solved using the webrtc tool and rtmp to stream.
Reply all
Reply to author
Forward
0 new messages