Rebuilding image cache fails?
#1
I have 8 GB RAM in my Notebook, Win 10. When TMM rebuilds the image cache after updating (not scrapging) one data source having a folder (with movies in movie folders each) containing 300 movies it obviously does it to the end, when it does the same for 2500 movies in a folder a message appears after some time, like something went wrong, java heap or so.

Image

Image

Image

Obviously that causes, that fan art, movie images are not shown.

Is there any setting I could adapt in TMM to make it work correctly?
Reply
#2
caching the images is really cpu/memory intensive; just tested it on my machine and got the heap error sometimes.. but only when trying to display the image?! 
I do not know if we are able to enhance that since memory management is solely being done by the Java runtime; we just may swallow the out of memory exceptions...
tinyMediaManager - THE media manager of your choice - available for Windows, Mac OSX and Linux
Help us translate tinyMediaManager Weblate
Image
Reply
#3
So there is not anything I could do, I assume. Is there a possibilty to rebuild the cache partially, e.g. for the 2500 movies folder one could (manually) split those movies and rebuild the cache for the first 500 movies, then the next 500 movies and so on (may be there is a way to implement such in TMM). So may be the method would not use that much memory at the same time.

How much memory has to be shown free in the Task Manager (with my settings above in TMM) to make TMM rebuild the image cache correctly?
Reply
#4
I've built a out of memory handling for v3 right now and it should throttle cache building when a memory bottleneck has been detected..
btw: you can just restart the rebuild at any time. IIRC it will just rebuild missing images
tinyMediaManager - THE media manager of your choice - available for Windows, Mac OSX and Linux
Help us translate tinyMediaManager Weblate
Image
Reply
#5
Quote:I've built a out of memory handling for v3 right now and it should throttle cache building when a memory bottleneck has been detected..
That sounds great, thank you.
Quote:btw: you can just restart the rebuild at any time. IIRC it will just rebuild missing images
Ah, I didn't know it, I thought when it fails once it will fail the next time as well. So only missing images are rebuild not already (in the cache) existing ones, that means when I click "rebuild image cache" in "Tools" after the first fail (that heap error) the next images are cached and so on, so I just click "rebuild image cache" as often until the cache is rebuilt completely?

How much memory has to be shown free in the Task Manager (with my settings above in TMM) to make TMM rebuild the image cache correctly?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Rebuilding image cache fails?00