ZM problem because too many mysql threads

Support and queries relating to all previous versions of ZoneMinder
Locked
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

ZM problem because too many mysql threads

Post by loop »

Hi,
I've noticed that ZM opens 1 or 2 new mysql threads when viewing an event. Those threads stay open afterwards. When threads count in mysql reaches 100 I get an error from mysql "too many open threads" and ZM doesn't work any more.

When viewing live stream one thread is opened and it's closed when I close the live camera window.

I check the threads status by entering bash command:
mysql zm

end then in mysql I type:
status

How can I avoid this problem (without restarting mysql every once in a while) ?

Best regards,
Darko
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

I've solved it. There were instances of zms still running in the background, that's why mysql threads were left open.

D.
Locked