09-26-2011, 06:06 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
|
Memory leak?
I have been using the amazing Calibre software for many months with my Kindle 3, and love it so much I have donated to support the author and development of such a great piece of software. However, I think I have recently discovered an apparent problem with its memory use. If I leave Calibre running in the system tray of my computer for several days at a time (my PC stays on all the time), then memory usage climbs from low double digits up to 300Mb or more. Once it was over 600Mb after 2 weeks of use before I had to close Calibre and restart it.
I am running Windows XP (32-bit) Service Pack 3 with 4 Gb of memory. I only have a small library of a dozen or so books and rarely physically connect my Kindle. I get the Financial Times (UK) and The Age (AU) news downloaded an emailed to the device every morning, and the Economist every Friday, and I only keep the current copy of each in Calibre. Is this normal/desired Calibre behaviour, or is there something I am doing/not doing that may be causing this progressive increase in memory use? |
09-26-2011, 11:06 AM | #2 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not normal, and I cannot reproduce it. But there have been a couple of reports of this on windows. Unfortunately, without being able to reproduce it, I cannot fix it.
Try keeping it minimized in the task bar instead of using the system tray icon and see if that makes a a difference. |
Advert | |
|
09-26-2011, 11:33 AM | #3 |
Grand Sorcerer
Posts: 11,703
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@kovid: IIRC one difference between this report and the last one is news fetching w/email. The last reporter said that calibre did nothing but used memory. At least this time it is doing something.
|
09-26-2011, 01:41 PM | #4 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I doubt sending books by email could cause several hundred MB worth of mem leaks. But it should be easy to test.
jhay777: Turn off news download temporaily (just unschedule your news feeds) and leave calibre overnight, see if the memory usage increases. |
09-26-2011, 10:55 PM | #5 |
Member
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Sony PRS 650
|
Hi There
It is possible that this is an operating system issue. At work, we have two different programs for running scientific hardware. When full screen, both start slowly using more and more memory. In these cases, minimising then maximising usually frees up the memory. Good luck. |
Advert | |
|
09-28-2011, 02:42 PM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
|
OK, will try turning off system tray and news feeds alternately and let you know.
As far as a specific PC thing, I have used Calibre installed on 2 home and 1 work Windows PCs and they all exhibit similar behaviour. |
09-28-2011, 03:52 PM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
|
Ok, I disabled system tray (but not news download) and this is what I have noticed in Windows Task Manager:
When I start Calibre the memory usage jumps around a lot, but generally uses around 32Mb. Then I minimise the app and memory use drops to around 7Mb. After the memory usage stabilises a bit, I noticed that its slowly going up in 4K chunks, i.e. 8,388K then 8,392K then 8,396K, etc. I'm assuming if I leave this overnight it will keep going, and will check tomorrow. If I maximise Calibre and minimise it again memory usage seems to reset back. Can anyone else reproduce this? |
10-03-2011, 04:20 AM | #8 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
|
I disabled news download and left it running in the task bar (i.e. not system tray) over the weekend and ended up with 168MB memory use, so there is definitely a problem.
Not sure what to do next? |
10-03-2011, 05:44 AM | #9 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
i force exit & relaunch calibre - now it is using 100k PS I never ever use the news function. |
|
10-03-2011, 08:40 AM | #10 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
168MB memory usage sounds pretty normal to me.
|
10-03-2011, 08:55 AM | #11 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i think the concern is the slow upward drift. when I last posted I was seeing 106K, I now see 118k so its gone up 12k in the last 2 hours for no obvious reason,
& every time I open from tray & close it back to tray it picks up a few more Ks. now I'll have it do some work -I run "check the library" - memory usage goes up to 127k & stays at that level after task complete when put back into system tray. so it's never releasing un-needed memory ??? its not like I'm about to run out ( I have 6Gb onboard) but it seems that OP has a point. and this could be an issue for folks with only 1Gb or those still running XP in 512k Last edited by cybmole; 10-03-2011 at 08:57 AM. |
10-03-2011, 09:30 AM | #12 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
10-03-2011, 10:26 AM | #13 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre is written in a memory managed language, which means that changes of a few MB up and down will keep happening from time to time. A memory leak would be a repeatable increase in memory usage that happens consistently and stacks up over time.
That's what the OP was reporting, but I cannot reproduce. |
10-03-2011, 11:17 AM | #14 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
well I'm reproducing it OK here. I just took another look at task manager, after ignoring calibre for a few hours. its now at 134Mb.
so my install has increased its memory usage by 30% since this morning !, it is way out in front of Google Chrome, Outlook , all my other running processes! what happens when you run task manager & toggle calibre to/from being closed in task bar. do you not see an increment every time you open / close it ? Last edited by cybmole; 10-03-2011 at 11:21 AM. |
10-03-2011, 11:38 AM | #15 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, I do not.
|
Tags |
memory leak |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 3 Screen Leak?? | LuBiB | Amazon Kindle | 59 | 06-04-2011 03:48 PM |
[Old Thread] Memory leak, Worker procees closeing | theducks | Calibre | 14 | 03-30-2011 09:06 PM |
jetBook MINI Real LEAK?! | LuBiB | Ectaco jetBook | 35 | 10-22-2010 12:25 AM |
New details leak on Samsung’s first Android tablet | Dopedangel | News | 2 | 06-15-2010 03:14 AM |