Memory leak

Please check the log file and provide steps to reproduce your issue when reporting bugs.
dohabandit
Posts: 5
Joined: Fri Apr 11, 2014 5:43 pm

Re: Memory leak

Postby dohabandit » Mon Apr 21, 2014 5:17 pm

I have a camera that is in my list that is switched off 90% of the time. I can remove it from the camera list to see what happens.

The other camera is streaming two H264 video streams via RTSP (i-frame interval of 20):
Main stream:
25fps
1920x1080P
fixed quality
8192Kbps

sub-stream:
10fps
704x576(D1)
fixed quality
2097kbps

Occasionally, but very seldom I see what appears to be a mpeg/tiling artifact that I attribute to a lost i-frame.
Even when the video is running smoothly without glitches, I can see the memory commit slowly growing over time.

calisro
Posts: 7
Joined: Mon Apr 07, 2014 3:18 pm

Re: Memory leak

Postby calisro » Tue Apr 22, 2014 1:15 pm

sporn, My cameras are not all properly working all the time. It is the nature of my setup. I am using mostly internet based cameras and you know how that would go. They go up and down and quality gets better and worse all the time. It isn't something that I can control but I wouldn't think that it would eat all the memory on the server.

I had this occur again this morning and I turned all my cameras OFF and the memory did not free. If it was specifically related to a bad feed, then I would have expected memory to shrink again. If you have any ideas on how I can provide you better information to narrow it down, I am willing. I have been unable to narrow it down manually thus far. I've tried getting rid of the VLC cameras and it happened. I also tried to get rid of the MJPEG and use only VLC and it still happened. It doesn't appear to be related to the camera type.

I've checked by html logs ispy creates and there is nothing worth noting in there.

calisro
Posts: 7
Joined: Mon Apr 07, 2014 3:18 pm

Re: Memory leak

Postby calisro » Tue Apr 22, 2014 1:18 pm

forest777 - If your disk filled, then that can cause all kinds of problems. You should never had your swap file dynamically or fixed size large enough to fill your system disk.

forest777
Posts: 20
Joined: Fri Apr 18, 2014 7:09 pm

Re: Memory leak

Postby forest777 » Wed Apr 23, 2014 2:30 am

I don't know, now I have 28 GB left on my hard drive and my pagefile.sys is 9GB, all the time.

When I run iSpy, every 5 seconds, there is 1 MB less available on my hard drive. But my files are recorded on a
usb stick. As soon as I close iSpy...I get back the space on my hard drive.

dohabandit
Posts: 5
Joined: Fri Apr 11, 2014 5:43 pm

Re: Memory leak

Postby dohabandit » Thu Apr 24, 2014 12:12 pm

I started switching things off to see if anything changed the memory leak issue. I have two cameras. One with two streams, and the other was left defined but the camera was switched off.

Over the last 24 hours I haven't gone over 3GB of ram for ispy, I believe the size is based on how much video I am telling it to buffer before a motion event triggers recording.

Anyway, what I found was having the "powered off" camera in the list of cameras and not "switched off" in ispy was causing it to attempt to connect all the time to the dead camera. The only real change I made was "switching off" the camera in ispy and it appears the leak has stopped.

calisro
Posts: 7
Joined: Mon Apr 07, 2014 3:18 pm

Re: Memory leak

Postby calisro » Thu Apr 24, 2014 1:01 pm

Even if a camera is offline, it shouldn't grow over time. I dont think it is the buffering because I have tried turning buffering off (settings to zero) for performance reasons and I still had memory growth. I do believe that the # of cameras magnifies the problem and by limiting the number of cameras you've limited the problem (so not a true memory leak) but this is still an issue for someone like myself who has many many cameras that I need and they are connected over the internet. I wish I could narrow it down (or produce a debug log) for the developer to assist.

dohabandit
Posts: 5
Joined: Fri Apr 11, 2014 5:43 pm

Re: Memory leak

Postby dohabandit » Thu Apr 24, 2014 7:47 pm

Hrmm, might be correct. My memory usage is up to 4.9GB now.
So the leak seems slower with fewer cameras that it is connected or trying to connect too.

User avatar
sporn
Posts: 1689
Joined: Sat Mar 29, 2014 4:21 am
Contact:

Re: Memory leak

Postby sporn » Fri Apr 25, 2014 1:19 am

"When I run iSpy, every 5 seconds, there is 1 MB less available on my hard drive. But my files are recorded on a
usb stick. As soon as I close iSpy...I get back the space on my hard drive."

Usually this is due to your PC copying the files to a temporary disk location before transfering it to your USB drive. That's something windows does sometimes :(

User avatar
sporn
Posts: 1689
Joined: Sat Mar 29, 2014 4:21 am
Contact:

Re: Memory leak

Postby sporn » Fri Apr 25, 2014 11:16 am

can you guys try the latest update and report back?

forest777
Posts: 20
Joined: Fri Apr 18, 2014 7:09 pm

Re: Memory leak

Postby forest777 » Fri Apr 25, 2014 2:20 pm

sporn wrote:can you guys try the latest update and report back?


Sorry the same problem is present. Also I have 2 signals, 1 with VLC and one with ffmpeg (mmsh)
but now my VLC signal is broken on iSpy. The signal works inside the VLC player.

Soon I will stop updating iSpy because it always brings new problems :cry:


Return to “Bugs”

Who is online

Users browsing this forum: Google [Bot] and 2 guests