Huge number of movie kills my system to a crawl
#1
I have 6000+ movie in my collection and loading them into tmm(update) kills my system. I had to kill tmm from task manager to allow my system to be responsive.

Would it be possible to minimize memory usage?

THanks.
#2
well... having only half amount, but TMM stays responsive while updating from filesystem.

But without proper information, we can't give you any advice...
- what TMM version
- what Java version
- 64bit Java?
- how much memore assigned to TMM/JAva?
- what does the memory information on the bottom left show while updating?
- Logfile?
- ...?
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#3
I managed to get the error message.

java.lang.OutOfMemoryError: Java heap space
    at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
    at java.awt.image.Raster.createPackedRaster(Raster.java:467)
    at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
    at org.tinymediamanager.thirdparty.ImageLoader$InnerImageConsumer.setDimensions(ImageLoader.java:392)
    at sun.awt.image.ImageDecoder.setDimensions(ImageDecoder.java:80)
    at sun.awt.image.JPEGImageDecoder.sendHeaderInfo(JPEGImageDecoder.java:93)
    at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
    at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:141)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:169)

TMM version : 2.9.13
Java version : 1.8.0 152
Memory usage bottom left : used - 204MB / free 251mb / max 455mb (it fluctuates)
#4
Great Smile
Go to settings, and increase memory a bit (and restart)?

Be aware, that Java needs this memory as a "single free block" inside your memory.
So even with 16gig of ram, it does not necessarily mean, that TMM would start with 2gig of ram...
If it does not start anymore, try deleting (or editing) the extra.txt file manually.
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#5
Image
Just FYI. This time I havent increased the heap size. I will increase heap size and report back.
#6
yes, loading/scaling/buffering these big images (full hd fanarts) consumes very much memory.. this is the first place where you hit memory limits Wink
with 6000 movies you should increase the heap size by at least 256mb
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#7
I settle down by reducing the number of movie it scrape at one time. I do this by creating a folder and create symlinks to the movies that i want to scrape. worked well for me.
#8
if you are brave enough, you could try v3 (alpha, but it is quite stable the last half year) - there has been many optimization done
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab

Logout Mark Read Team Forum Stats Members Help
Huge number of movie kills my system to a crawl0