Feisty -5 memory leak, et.al.

Support and queries relating to all previous versions of ZoneMinder
Locked
John Williams
Posts: 23
Joined: Wed Apr 11, 2007 1:27 pm
Location: Austin, Texas USA

Feisty -5 memory leak, et.al.

Post 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?
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Not a packagin issue (I hope)

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
John Williams
Posts: 23
Joined: Wed Apr 11, 2007 1:27 pm
Location: Austin, Texas USA

Post by John Williams »

thx. Will give that a try...
Locked