Page 1 of 1

Feisty -5 memory leak, et.al.

Posted: Wed Apr 11, 2007 4:17 pm
by John Williams
"bad fd number" - fixed with dash reconfigure

Memory leak - is being caused by nph-zms processes that fail to establish a stream to the browser. Whenever a browser stream fails, a process will start consuming memory. If I try to re-open the window or open another, if it works, all is good. If it fails to start streaming, another process starts running away. Only way to recover is to restart apache.

I am running a bt787 cheapo card from ebay, with 2 ports enabled. This is the single chip version of the card. Not sure if this is a driver problem or a zms problem. For sure, when you kill a window, the process should die, but does not... Do you think that the card may not switch between cameras properly/reliably, and the zms code does not handle the error properly?

Not a packagin issue (I hope)

Posted: Sat Apr 14, 2007 1:13 am
by PeterHoward
As I said in another thread, I saw the leak prior to starting my packaging efforts but never tracked it down. I suggest you throw that at Phil Coombes directly.

Posted: Sat Apr 14, 2007 1:58 am
by cordel
The problem is in apache.
Try switching from nph-zms to just zms and this problem will go away.
The two binaries are exactly the same just apache does not parse headers (nph) with any cgi's that start with nph.

Posted: Sat Apr 14, 2007 2:35 pm
by John Williams
thx. Will give that a try...