Memory suddenly full.

phil

New Member
Hello Max,

I have encountered the issue that the memory suddenly goes 100%. Could you look into this for me ?
Thanks



upload_2017-9-12_14-37-51.png


This is our from monitor system.

The attached files are my configs.
 

Attachments

Max

Administrator
Staff member
Hello
The memory leak is caused by disabled keep alive
Code:
keep_alive.algorithm       =NONE
If you disable keep alive, websocket connections will utilize memory and can cause the memory leak.
Recommended options:
1. Update to the latest available build https://flashphoner.com/download
2. Enable keep alives for websocket and rtmfp
Code:
keep_alive.algorithm      =INTERNAL
keep_alive.enabled =websocket,rtmfp
 

phil

New Member
Hello
The memory leak is caused by disabled keep alive
Code:
keep_alive.algorithm       =NONE
If you disable keep alive, websocket connections will utilize memory and can cause the memory leak.
Recommended options:
1. Update to the latest available build https://flashphoner.com/download
2. Enable keep alives for websocket and rtmfp
Code:
keep_alive.algorithm      =INTERNAL
keep_alive.enabled =websocket,rtmfp

Hello Max, If I don't set that to NONE, FFMPEG is not able to send video streams to WCS.
 

Max

Administrator
Staff member
Hello Max, If I don't set that to NONE, FFMPEG is not able to send video streams to WCS.
It was fixed in latest builds.
Following settings should disable keep alives for RTMP (ffmpeg), but enable for websockets, RTMFP
Code:
keep_alive.algorithm =INTERNAL
keep_alive.enabled =websocket,rtmfp
You have to update to the latest build to get this working.
 

phil

New Member
It was fixed in latest builds.
Following settings should disable keep alives for RTMP (ffmpeg), but enable for websockets, RTMFP
Code:
keep_alive.algorithm =INTERNAL
keep_alive.enabled =websocket,rtmfp
You have to update to the latest build to get this working.
Hello Max,

The issue occurred again today. Please help on this one.
 

Max

Administrator
Staff member
Please provide build version, conf and logs details.
Currently we don't have such information and consider the issue as resolved.
 

Max

Administrator
Staff member
Hello
Add this setting to server.properties
Code:
rtmp.use_server_socket_timeout=true
If ffmpeg is disconnected or lost connection, WCS server will force disconnect in 30 seconds by default and stream will be released.
Another setting is
Code:
rtmp.server_socket_timeout=30
If no data read from RTMP socket in 30 seconds, connection will be closed.
Please try to setup this to prevent memory leaks with ffmpeg.
Do wcs restart to apply changes
Code:
service webcallserver restart
 
Top