WCS CPU high

Angel Lu

New Member
Hi,
We use the WCS in our live streaming video, but the CPU still high(100%) when the user only 20. May I know have any setting need to change?
We use the version number is 5.0.2075.
 

Angel Lu

New Member
Hi
So this can fix CPU high issue?
Because now only 20 to 25 user will that the CPU high, but we don't know why.
 

Max

Administrator
Staff member
We didn't see this issue with the latest build.
If you installed the latest build and you still have the CPU issue, please send sudo SSH access details to logs@flashphoner.com
We will check CPU. Or just provide SSH access, we will check the current build.
 

Angel Lu

New Member
Oh, noted.
And if we reconnect every 1 min (means will re-access the url). That will that the CPU higher?
 

Angel Lu

New Member
Hi,
I try to add VisualVM, but can't add the WCS server in here.
I try to use the ip, but seems can't success.
 

Max

Administrator
Staff member
To enable visual VM you have to configure WCS server
For latest versions
WCS_HOME/conf/wcs-core.properties
Code:
-Djava.rmi.server.hostname=192.168.88.4
Here 192.168.88.4 is IP address of your host.
For old versions 20xx
WCS_HOME/bin/startup.sh
Code:
-Djava.rmi.server.hostname=192.168.88.4
Here 192.168.88.4 is IP address of your host.

Anyway we need SSH access to the server to check it. It is bit hard to find issue remotely without ssh.
Please send ssh access to logs@flashphoner.com
 

Max

Administrator
Staff member
Hello,

If it is not possible to provide ssh access to the server, please archive WCS_HOME/conf directory and latest 24 hours of logs from WCS_HOME/logs and send to logs@flashphoner.com.

Also, please describe how the server is used, i.e. types of streams published or played (WebRTC, RTMP or other), which clients are used etc.
 

Max

Administrator
Staff member
Now we upgrade the WCS version to 2549 two days, but still CPU and memory high this two days.
Could help to check it? Because now we only 20 user in server.
Now our VM has 8 cores and memory have 32 GB, but still have problem.
From your report, it looks like a memory leak. We need either SSH access or full logs and additional diagnostic information.
Please send to logs@flashphoner.com or share download link if it is more than 15 M.
 

Angel Lu

New Member
Hi,
You said can about 1000 users right? Could you pass the setting file to me? And may I know which log file name you need? Thanks
 

Max

Administrator
Staff member
You said can about 1000 users right?
We tested 1 publisher and 1000 subscribers.
Publisher is Chrome 62 / WebRTC / Opus+VP8
Subscribers: synthetic subscribers pulling WebRTC traffic from server

This is tuning instructions:

WCS Tuning for build 2556
1. Update to the latest available build
Code:
service webcallserver update 2556
2. Configure WCS heap and GC in WCS_HOME/conf/wcs-core.properties. Make sure you have enough free memory on your server, i.e. 16G RAM.
Code:
-Xms8g -Xmx8g
-XX:+UseConcMarkSweepGC -XX:NewSize=1024m
3. Configure UDP buffers in WCS_HOME/conf/flashphoner.properties
Code:
rtp_receive_buffer_size=13107200
rtp_send_buffer_size =13107200
Values must be not greater than /proc/sys/net/core/rmem_max and /proc/sys/net/core/wmem_max respectively

4. Set VP8 priority and limit incoming bitrate
Code:
webrtc_cc_min_bitrate =400000
webrtc_cc_max_bitrate =500000
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,vp8,h264,flv,mpv
5. Extend queue on linux
Code:
ip link set txqueuelen 2000 dev eth0
Monitoring of lost UDP packets
Code:
dropwatch -l kas
>start
However it won't help for your case because you have obvious memory leak.
Please describe in detail how does your case work. How do you stream. Please provide streaming scheme, logs, etc.
Please share WCS_HOME/logs and WCS_HOME/conf for last 24 hours to logs@flashphoner.com
 

Angel Lu

New Member
Hi,
Actually we not use WebRTC, we used WebSocket.
1. May I know have some different for setting?
2. How many user?
 

Max

Administrator
Staff member
Hello
We do not have latest load tests with WSPlayer.
Please describe your streaming scheme in detail. How do you stream and logs for last 24 hours. Then we will be able to setup load tests on our end and provide our results.
 
Top