'Memory consumption is increasing using tcpserversink
I am trying to use tcpserversink in one node and tcpclientsrc in other node to stream video frames. My Image size is 77Mb. I have connected two nodes using ethernet. Ethernet bandwidth is 500Mbps, so theoretically I should achieve 6.5fps. I am also able to achieve it. I am using push-buffer signal to insert the buffer and I have made sure to insert images every 153ms by hard limiting. If I don't limit by code, Gstreamer is taking frames every 60ms. Since the bandwidth limit is 6.5fps, ram and swap on the transmitter side is shooting up and Oom killer kicks in and kills my streaming process. How do I resolve this issue?
Solution 1:[1]
I solved the problem by setting buffer-soft-max to 2
and recovery-policy to latest
for tcpserversink.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |