Zmfilter goes to 100% cpu

Forum for questions and support relating to the 1.29.x releases only.
Locked
tikismoke
Posts: 3
Joined: Fri Sep 02, 2016 4:14 pm

Zmfilter goes to 100% cpu

Post by tikismoke »

Hi all,

Looking why my cpu start burnging :( i made a top on the host and find zmfilter was using 100% cpu.

I found this related issue in botbot me:
JRansomed
Hey guys, does zm filters track things that they have already processed? I rebooted my box after some patching yesterday and had zmfilter.pl jump the load to 70. That hurt. I believe it was running the alert filter against all my events (many events, over a thousand) all over again.
6:14 pm
JRansomed - zmfilter marks a record as "executed' when done - I think its a DB entry - so it should not repeat - though I've not traced all situations
6:28 pm
yeah the Events table has an executed field
6:29 pm
and if that event is acted upon https://github.com/ZoneMinder/ZoneMinder/blob/m... sets that field to 1
6:29 pm
JRansomed
Interesting... To get past it, I added "and Date/Time greater than -1 hours"
6:29 pm
Then it processed the last hour's worth and life was good.
Doing the same it as stop make my server so hot.

So my rules looks like this now:

https://snag.gy/TO4KPE.jpg

Thank's to irc logs.
tikismoke
Posts: 3
Joined: Fri Sep 02, 2016 4:14 pm

Re: Zmfilter goes to 100% cpu

Post by tikismoke »

This is munin graph showing the difference:
https://snag.gy/YRhzLW.jpg
Locked