Page 1 of 1

How many ZMC instances?

Posted: Thu Apr 21, 2016 3:58 pm
by rockandroller
Doing testing and configuration... for the first time left the Zm running all night.
Seems to be working fine, but I notice there seem to be more processes now (or maybe I just didn't notice them earlier?)

I see one ZMA process per camera, but what appears to be at least NINE zmc processes per camera. Is this normal?
ZMprocesses.png
ZMprocesses.png (91.04 KiB) Viewed 3572 times
Also, what I would call "idle" server load seems to have doubled since yesterday, it's now running at about 1/4 of machine capacity, whereas yesterday it was about 1/8th..

Re: How many ZMC instances?

Posted: Thu Apr 21, 2016 8:24 pm
by asker
this does look odd and I don't believe is normal. multiple instances of zmc should be transient (if at all) - not long lasting.
You might want to post more details about your config and zm debug logs and some knowledgeable folks may chime in.

Re: How many ZMC instances?

Posted: Fri Apr 22, 2016 10:47 pm
by PacoLM
Hi,

I saw this long time ago, but I read a post of an user explaining that ffmpeg sources usually uses more than one process. I do not know if it´s true, but in my zm server, the zmc process are also repeated in all the monitors using ffmpeg.

Regards,

PacoLM

Re: How many ZMC instances?

Posted: Sun Apr 24, 2016 1:56 am
by knight-of-ni
If you use ps instead of htop, you will likely see just one zmc process per camera, at least if everything is working correctly.

Unlike ps, htop shows each thread separately.

For further reading:
http://unix.stackexchange.com/questions ... ss-than-ps

Re: How many ZMC instances?

Posted: Mon Apr 25, 2016 4:04 pm
by rockandroller
Thanks! Multi-threaded process totally makes sense :-)

Re: How many ZMC instances?

Posted: Mon Apr 25, 2016 8:06 pm
by kevin186
I think pressing "shift h" will hide the threads in htop.

Re: How many ZMC instances?

Posted: Mon Apr 25, 2016 8:17 pm
by PacoLM
kevin186 wrote:I think pressing "shift h" will hide the threads in htop.
Yes sir!