multiple zombi "sh" processes on MJPEG stream
Posted: 01 Oct 2013 11:12
I use VLC 2.0.8 on Ubuntu 12.04 to watch MJPEG http stream from my IP-camera. Several processes appears in system monitor when I push play button: "xdg-screensaver", "sleep", "xprop" and "sh". After I stop streaming, all of them are disappeared, except zombi "sh" process. Even "kill -9" command doesnt kill this process. When I push play button again, second "sh" process appears. So, every time I push play button new "sh" process appears. There is no any "sh" process when playing RTSP h264 stream.
Also I am using libvlc in my app, which should capture video from IP-cam in 24/7 regime, but connection often lost and I need to restart stream, so some time after I start my app, there is lots of "sh" processes in System Monitor. It`s seems not very good and can lead to memory leak.
Is there is any way to avoid such situation?
Also I am using libvlc in my app, which should capture video from IP-cam in 24/7 regime, but connection often lost and I need to restart stream, so some time after I start my app, there is lots of "sh" processes in System Monitor. It`s seems not very good and can lead to memory leak.
Is there is any way to avoid such situation?