zmaudit.pl is hammering mysql 100% cpu
Posted: Tue Oct 27, 2015 10:17 pm
Newly set-up system, running 1.28.107 in a docker container, 5 IP cameras, 4 core athlon 3.8GHz with 16gb ram. After running for a few days, mysqld is hitting 100% cpu almost constantly. Mysql processlist reveals this suspect:
Which as it turns out is coming from zmaudit.pl. I disabled auditing, restarted zm, and mysqld is behaving nice again. My question is what should I be looking at to figure out why zmaudit.pl is hitting so hard? Are there any reasons I shouldn't just leave it disabled for the long term?
Thanks,
patpend
Code: Select all
mysql> show full processlist;
+-------+--------+-----------+------+---------+------+-------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-------+--------+-----------+------+---------+------+-------+-----------------------+
.
.
.
| 74131 | zmuser | localhost | zm | Query | 446 | Sending data | SELECT * FROM Events as E LEFT JOIN Frames as F ON (E.Id = F.EventId)
WHERE isnull(F.EventId) AND now() - interval 86400 second > E.StartTime |
.
.
.
Thanks,
patpend