cpu usage

tobisaki

New Member
thank you for your help.

When i tried my application, that customized /usr/local/FlashphonerWebCallServer-5.0.2267/client2/examples/demo/streaming/player/player.html
cpu usage max.
and many messages written to gc-core.log
whats wrong?
 

Attachments

Max

Administrator
Staff member
Please attach:
  • Your customized player.js file (zipped)
  • cat /proc/cpuinfo
  • WCS_HOME/conf/flashphoner.properties
We will check.

You see Allocation Failure logs because you have to add heap memory in WCS_HOME/conf/wcs-core.properties
Replace
Code:
-Xmx1024M
with
Code:
-Xms2048M -Xmx4096
Then do WCS restart
Code:
service webcallserver restart
 

tobisaki

New Member
Please attach:
  • Your customized player.js file (zipped)
  • cat /proc/cpuinfo
  • WCS_HOME/conf/flashphoner.properties
We will check.

You see Allocation Failure logs because you have to add heap memory in WCS_HOME/conf/wcs-core.properties
Replace
Code:
-Xmx1024M
with
Code:
-Xms2048M -Xmx4096
Then do WCS restart
Code:
service webcallserver restart
Max san, anytime thank you for your help!
i planed about 50 ip-cam and each cam have many viewer.
testing h/w have 16gb memory.
application is made node.js, it does not require much memory.
What is the correct wcs-core.properties memory setting?
 

Max

Administrator
Staff member
What is the correct wcs-core.properties memory setting?
-Xms2048M -Xmx4096

According our tests, one IP camera H.264+AAC utilizes about 30% of 1 core CPU.
This load is caused by audio transcoding from AAC to Opus (WebRTC).

If we test video only, without audio playback, it utilizes 3% of 1 core CPU.
Code:
 var options = {
        name: streamName,
        display: remoteVideo,
        flashShowFullScreenButton: true,
        constraints: {audio:false,video:true}
    };
...
stream = session.createStream(options).on(STREAM_STATUS.PLAYING, function(stream){
...
}
So, for 50 cams, you need 1 core CPU per 3 cams with AAC audio.
Or 1 core CPU per 30 cams without AAC audio.

If you cam supports G.711 audio codec, you can optimize CPU load using H.264+G.711 encoding on IP camera end.
 

tobisaki

New Member
Max san, thank you for detail infomation.
so i could understand, and I felt more study is necessary, thank you so much.
i have never heard of g.711
 
Top