Multiple remote access

Forum for questions and support relating to the 1.29.x releases only.
Locked
icar17
Posts: 4
Joined: Mon May 22, 2017 10:51 am

Multiple remote access

Post by icar17 »

Hi,
i'm using ZM 1.29.0 in a VM.
CPU usage is 0.37%, Memory usage is 1.97%. Bandwidth : 1GB/200MB
Using 4 cams.

When i monitor using http://x.x.x.x/zm/index.php?view=montage&group=0 all is fine.
If i monitor more than 1 time (from 2 different points), i only can see 2/4 cams...
If i stop one monitor (first or second), all becomes good.

Any idea please ?
Thx
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Multiple remote access

Post by bbunge »

Check your tmpfs. Sounds like you are running out of memory. Always best to not install Zoneminder on a VM.
icar17
Posts: 4
Joined: Mon May 22, 2017 10:51 am

Re: Multiple remote access

Post by icar17 »

thx for your answer.
Here's my conf :
PATH_SWAP = /tmp/zm

and my /tmp is in /

root@ZoneMinder:/tmp/zm# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop 0206293688 1762968 194028576 1% /
none 492 0 492 0% /dev
tmpfs 3293696 116 3293580 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 819200 45760 773440 6% /run/shm
cgroup 12 0 12 0% /sys/fs/cgroup
cgmfs 100 0 100 0% /run/cgmanager/fs
tmpfs 204800 0 204800 0% /run/user/33
tmpfs 204800 0 204800 0% /run/user/0

what's wrong ?
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Multiple remote access

Post by bbunge »

Don't see anything there out of the ordinary. Possible that your PATH_SWAP, set to use hard drive, is going slow. You can try to use RAM by setting PATH_SWAP=/run/shm or another free area in tmpfs. When you watch individual monitors there are a lot of JPG's written to PATH_SWAP (1000 for each monitor before they are overwritten). Doing this in tmpfs, which is RAM, is faster than writing to disk.

Watching in Montage view should not have this problem.
icar17
Posts: 4
Joined: Mon May 22, 2017 10:51 am

Re: Multiple remote access

Post by icar17 »

same problem with PATH_SWAP=/run/shm and the problem is the same with Montage View (2 remonte access) :/
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Multiple remote access

Post by bbunge »

Are you using Firefox? If so there is a fix in the WIKI you need to do.
icar17
Posts: 4
Joined: Mon May 22, 2017 10:51 am

Re: Multiple remote access

Post by icar17 »

no, using Chrome.
It seems it's a local problem : when i access more than one time from an IP to http://x.x.x.x/zm/index.php?view=montage&group=0 it doesn't work.
But if i access x time form different devices (different IP too) i have no problem.
Locked