Possible memory leak

Colin Law clanlaw at gmail.com
Tue Jun 2 03:08:05 EDT 2015


On 2 June 2015 at 03:01, Paul Warthe <warthes7 at gmail.com> wrote:
> Hi Andrew,
>
> No, it’s not my hard drive, it’s my RAM. I have 190 GB of free space on my data drive at the moment.

When the problem arises have a look in task manager (or other tool)
and see what is hogging the memory.
Are you using xml files or one of the database types?
If xml how big is the accounts file?

Colin

>
>
>
> I am quite familiar with Task Manager, although I tend to prefer SysInternals’ Process Explorer. I haven’t checked memory usage when GnuCash is running, so I have nothing to compare it to when it is not running. I have checked for gnucash.exe in Process Explorer and it is not listed. Yet I can run fine for days after a reboot, but once I use GnuCash something keeps using up memory until I get “Low Memory” warnings and am forced to reboot. If you remember Vista, you could have various gadgets on the sidebar. I keep one running which shows CPU usage and RAM available. Running with basic programs open (Outlook) I have 46-50% RAM used. Opening Excel, Word, etc. bumps it up to 65% or so. Closing the program drops the memory used back down again. This is not always so with GnuCash. I used the program on Saturday and by today the RAM creep had used up 80% - and there was no indication of GnuCash running in Process Explorer.
>
>
>
> I will watch the RAM usage more closely the next time I go into the program and see what happens.
>
>
>
> Thanks for your input.
>
>
>
> Paul
>
>
>
> From: Andrew Kolbus [mailto:andrew.kolbus at gmail.com]
> Sent: Monday, June 01, 2015 8:24 PM
> To: Paul Warthe
> Cc: gnucash-user at gnucash.org
> Subject: Re: Possible memory leak
>
>
>
> Paul,
>
> Are you sure it's RAM usage and not your hard drive filling up?  Gnucash does keep backup files (for 30 days in my case).  Each file is a full copy of the gnucash accounts file, and there can be multiple backups in a single gnucash session (especially if you're doing a lot of work over hours/days).  I have 70 files from the past 30 days, for a total of ~100MB.  If you're hard drive is pretty full the backups could be pushing you over the edge.
>
>
>
> If you're confident it's RAM usage:
>
> Are you familiar with windows task manager?  Have you used it to check process RAM usage to see if/what is the actual problem?  Memory leaks don't continue after the program is closed, so make sure that gnucash.exe disappears from the process list in task manager once you close it.
>
>
>
> In case you're not familiar:
>
> You can load task manager by right-clicking on an empty part of the windows task bar and choosing "Start Task Manager".  If you switch to the [Processes] tab, you can see each running process and how much RAM it is using.  Sort by "Image Name" and find gnucash.exe.  Mine has been running all day and is at ~112MB.  If yours is about the same or less, sort by memory usage and see what is actually using your RAM.  It might help to click the [Show processes from all users] button.  If it's inconclusive, check the gnucash memory usage when you first start it up and after you've been using it for a while.  I don't think it should change much, and if there's not much else running on your machine I expect it would have to get to about 1GB before it started causing trouble.
>
>
>
> Hope this helps.
>
>
>
> -Andrew
>
>
>
> On Mon, Jun 1, 2015 at 8:09 PM, Paul Warthe <warthes7 at gmail.com> wrote:
>
> Hi gang,
>
>
>
> Here's something which has been baffling me. I've been using GnuCash for
> about 6 months now to manage my home finances and ever since I noticed I
> have been running out of RAM. I never thought that it might be GnuCash until
> just recently. I had restarted my computer about a month ago and hadn't had
> time to do much on it - far too much going on in my personal life. I hadn't
> done anything with GnuCash until this past weekend when I took a couple of
> evenings to get caught up on 5 weeks of receipts, bill payments, etc. Now, I
> am almost out of RAM again. Thinking through my experiences of "Low Memory"
> warnings, they always seemed to come after spending time in GnuCash. I don't
> leave the program open, but I'm wondering if there is some memory leaking
> which continues after I close the program. After a reboot I seem to be fine
> until I use GnuCash, then eventually the memory gets used up until I reboot
> again.
>
>
>
> I started with GnuCash 2.6.3, then 2.6.5 and now 2.6.6. I am running a Dell
> Precision 360 with Windows Vista Business, Intel Core 2 6300 32-bit CPU and
> 4 GB Ram. All MS patches are up-to-date.
>
>
>
> You input in tracking this down would be appreciated.
>
>
>
> Regards,
>
> Paul W.
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list