Memory leak

Please check the log file and provide steps to reproduce your issue when reporting bugs.
calisro
Posts: 7
Joined: Mon Apr 07, 2014 3:18 pm

Memory leak

Postby calisro » Wed Apr 09, 2014 2:23 pm

I have been seeing for a long time that over a period of 24 hours or less the memory used by ispy increases. This has been happening since early on. I have previously reported a bug on this very issue and have remained on early versions to work around the issue. It would be nice if the memory leak can be addressed. Memory usage creaps from around 300-500 Megs up to consume all the memory on the server ( over 2 Gig of ram) until the ispy program needs to be killed and restarted to release the memory.

This was the original bug that was cancelled because of non-activity but the problem still persists.

http://www.1inline.com/reply.aspx?mid=7 ... 3e06f965d3

I checked the ispy log but since the file grew over 100k, it doesn't capture any of hte errors pertaining to the memory issue. I've increased the max size to much larger and I'll post a log when it crashes again.

Also, the type of setup I have is using 2 camera types. 1) MJPEG 2) vlc plugin. I have about 28 cameras in total. Some connect and disconnect a lot which is a network issue (wifi range of those cameras) but that isn't a problem for me.

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

Re: Memory leak

Postby sporn » Thu Apr 10, 2014 3:45 am

could you detail your exact setup - maybe pm me your object list

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

Re: Memory leak

Postby dohabandit » Fri Apr 11, 2014 5:49 pm

I have the memory leak issue as well. It will consume up to 10G of RAM in several hours...

I have 2 camera streams from one camara (GadSpot GS-SD200A), both using RTSP via the VLC plugin.
I am using the -ffmpeg-hw switch and have nvidia 660Ti based video card.
I have one camera stream (1080p) recording a timelapse in addition to event based clips based on motion detection triggered by the other stream. The lower resolution stream is doing motion detection to reduce the cpu utilization of doing this with the 1080p stream alone.

I decided to install a newer version of the VLC64 libraries, so I copied them over the dll's in the VLC64 directories. Doesn't seem to have made things any better or worse.

There is a single thread owned by msvcrt that is consuming all the memory, as identified by processexplorer.

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

Re: Memory leak

Postby calisro » Thu Apr 17, 2014 1:29 pm

I am sending a cleansed copy of my objects via PM (URLS and username/passwords cleaned of course)

Also, I tried increasing the logfile but that didn't work. It reports the higher amount in the logfile but still stops writing at 5k. That may be a bug but if there is an appropriate way to increase the logfile size and if you think that would help, let me know.

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

Re: Memory leak

Postby sporn » Fri Apr 18, 2014 12:19 am

If you can narrow it down to something specific that would help - try disabling/enabling stuff until you can say for sure what is causing it.

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

Re: Memory leak

Postby calisro » Fri Apr 18, 2014 4:40 pm

I've tried to narrow it down for months unsuccessfully. Is there some way of producing an app level debug log that may capture something?

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

Re: Memory leak

Postby forest777 » Fri Apr 18, 2014 7:14 pm

Hi,

I have the same problem. I bougth a new webcam, a 1080p webcam.
I am recording 24 hours a day on a usb key. The signal comes from a VLC server.

2 times this week, I wake up in the morning and my disk space is full. As soon as I close iSpy,
then my disk space goes back to 17 GB. I think the swap file is full. There is a memory leak.

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

Re: Memory leak

Postby dohabandit » Sun Apr 20, 2014 4:12 am

Disk full != memory leak. Yeah, if your pagefile is dynamic and your memory is swapping like crazy then it could cause disk to fill assuming your paging disk has little space left. Not a good idea to run out of space on you system volume. You should probably consider reducing the size of your pagefile.

Suggest looking at task manager or processexplorer first to determine if you have a memory leak. Add some extra columns for paged pool, etc. In my case, it takes even the latest version less than 24 hours to consume 15G of RAM, causing most everything else to page to disk.

I will try to do a little more digging the next time it happens. I do know that the thread that is consuming all the memory belongs to the microsoft visual C runtime dll. ispy spawns at least 20-30 threads under that dll.

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

Re: Memory leak

Postby sporn » Sun Apr 20, 2014 4:26 am

I have a suspicion this is due to corrupted frames from a camera feed. Are all your cameras working properly in iSpy?

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

Re: Memory leak

Postby forest777 » Sun Apr 20, 2014 11:08 pm

On my linux server, the VLC complaints a bit about the frames but on my Windows computer with iSpy, I get a good signal without interruption. But I have to restart iSpy every 12 hours. I have 17 GB remaining on my c: drive and when I run iSpy for like 24 hours...I wake up and there is no more space remaining. I need to shut down iSpy in order to get back my 17 GB. It's annoying.

As I said, my records are saved on a USB stick.


Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 2 guests