LinHES Forums
http://forums.linhes.org/

LinHES 7.04 possible memory leak
http://forums.linhes.org/viewtopic.php?f=21&t=22739
Page 1 of 2

Author:  nbdwt73 [ Mon Aug 27, 2012 3:13 pm ]
Post subject:  LinHES 7.04 possible memory leak

I am starting to see symptoms of a memory leak in 7.04. I went from 7.02 to 7.04 so cannot say if it was present in 7.03. Is anybody else seeing any symptoms?

Attachment:
mem.png
mem.png [ 18.77 KiB | Viewed 13086 times ]

Author:  mattbatt [ Mon Aug 27, 2012 8:17 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

Are those two reboots or what cauesed the memory to drop?

Author:  nbdwt73 [ Tue Aug 28, 2012 2:31 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

I don't know what happened there - I was on vacation for 10 days so wasn't here... I do know that no recordings were happening...

The logs say that the system ran out of memory and a reboot occurred.

Here is the one for today (Tuesday).

Attachment:
memory.jpg
memory.jpg [ 91.16 KiB | Viewed 13063 times ]

Author:  nbdwt73 [ Wed Sep 19, 2012 4:35 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

I built another test box the same way my prod box was done - upgraded from 7.2 to 7.4 with no additional added software other than Chromium and samba. I have let the test box run for a week with no activity. I am seing the same memory leak (or memory in use climb) that I see on my prod box. I also see swap file use increasing.

Attachment:
mem.jpg
mem.jpg [ 179.17 KiB | Viewed 13032 times ]


Is anybody else seeing this?

Author:  christ [ Wed Sep 19, 2012 7:36 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

What tool are you using to measure memory usage history? I'll give it a try and see if it is happening on my backend.

Currently my master backend has been running for 17 days and is sitting at approx 1GB usage. It usually runs for months before I have any need to reboot it for one reason or another. I only have 1.5GB allocated for it and I have only ever seen minimal swap usage. Currently I have used 0.015GB (ie. 15MB) of swap.

Author:  nbdwt73 [ Thu Sep 20, 2012 7:25 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

The graphs are from rrd. Seems to me i remember something about a memory leak in some nVidia drivers. I think I will try changing to an older release and see what happens.

Can a few people please check their rrd stats and confirm what they see? Thx.

Author:  christ [ Thu Sep 20, 2012 10:24 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

Can you give us the commands/scripts used so we can make an appropriate comparison. By default rrd is not on LinHES so rrdtool needs to be installed.

Author:  spideyk21 [ Thu Sep 20, 2012 11:35 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

Upgraded form 7.02 to 7.04 a couple of weeks ago. Memory usage looks good on my Backend/Frontend box. Pretty stable/consistent.
ImageImageImage

Author:  nbdwt73 [ Fri Sep 21, 2012 6:29 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

Thanks spideyk21...

crist, rrd should be on your machine - look in system setup, I think under software (I know rrd tools i in there somewhere), un-check it, save it, then re-check it again. Go to /data/srv/httpd/htdocs/rrd and make sure the permissions are set right (I had this problem). RRD is then available from your mythtv home web screen (status/rrdtool)

Author:  christ [ Sat Sep 22, 2012 6:55 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

Found it! thanks. I had no idea that was there so was planning to do it manually. I expected to see rrd added to cron somewhere though; I'm not sure where it is kicked off from.

I'll update you once I get substantial stats.

Note my backend has no tuner cards or video cards (it's in a VM) so it should provide a decent mythbackend baseline.

Author:  nbdwt73 [ Thu Sep 27, 2012 2:58 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

Update. I have drilled into this about as far as I know how... The memory creep is caused by something in the frontend on my MBE. If I stop and restart the frontend the memory usage goes bask to a normal state then, after a few hours, starts to creep back up. I have left the fronend down for a couple of days - memory usage stays normal.

I am going to build a fresh 7.04 (again) without restoring my backup (stay virgin) to see what happens (I want to see if it is hardware related...).

Author:  mattbatt [ Thu Sep 27, 2012 9:39 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

Good test

Author:  nbdwt73 [ Sun Sep 30, 2012 6:05 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

Getting closer... Will somebody that has mythexport working please check something for me? Do a normal backup (services menu, backup), then check your logs for mythexport (/var/logs/mythtv/mythexport). Do you see a recurring message - Unable to query mythexport_job_queue?

I am seeing it on both my production machine and my test machine. It occurs after a mysql stop issued in the backup. For that matter, just do 'sudo stop mythbackend, sudo sv stop mysql, wait a few seconds then reverse - sudo sv start mysql, sudo start mythbackend. Then check the logs...

Author:  nbdwt73 [ Mon Oct 01, 2012 5:36 am ]
Post subject:  Re: LinHES 7.04 possible memory leak

I should be clearer... There seems to be a problem with /usr/lib/mythexport-daemon whenever mysql goes away... It starts complaining and doesn't stop - even when mysql comes back. If you have mythexport setup (or if you ever tried to set it up) you have mythexport-daemon running. Please stop mysql and check the logs. The way to clear it up is to restart the daemon (sudo sv restart mythexport). Thanks.

Author:  jams [ Mon Oct 01, 2012 6:40 pm ]
Post subject:  Re: LinHES 7.04 possible memory leak

thanks nbdwt73 this is good information.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/