Solved java.lang.OutOfMemoryError: Java heap space
#1
How can I solve the following error that the app gives me? I use version 4.04 registered. java.lang.OutOfMemoryError: Java heap space

Thank you.
#2
I have configured the following parameter in the system and it seems that it has been fixed.

SET _JAVA_OPTIONS = -Xms512m -Xmx1024m
#3
The errors continue ...

2020-10-08 22:37:28,412 WARN  [Image Fetcher 0] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:29,429 WARN  [Image Fetcher 2] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:28,910 WARN  [tmmpool-image-download-task-T69] org.tinymediamanager.core.ImageCache:198 - hit memory cap: Java heap space
2020-10-08 22:37:30,696 WARN  [Image Fetcher 2] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:31,958 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:31,958 WARN  [Image Fetcher 2] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:33,531 WARN  [Image Fetcher 2] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:33,531 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:35,050 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:34,543 WARN  [Image Fetcher 2] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:36,068 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:36,811 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
2020-10-08 22:37:38,081 ERROR [tmmpool-scrape-T2] o.t.core.tvshow.TvShowList:490 - failed to persist episode: xxxxxxxxxxxxxxxxxxxxxxxxxx This map is closed [1.4.197/4]
2020-10-08 22:37:38,080 WARN  [tmmpool-image-download-task-T69] org.tinymediamanager.core.ImageCache:198 - hit memory cap: Java heap space
2020-10-08 22:37:39,617 WARN  [Image Fetcher 1] o.t.thirdparty.ImageLoader:415 - hit memory cap: Java heap space
#4
Image
#5
how much entries do you have in your library?
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
#6
More than two thousand tv shows and more than ten thousand movies. It occurs in various parts of the program, when loading, or searching for metadata, or scratching. When using the automatic mode, if I go in small groups more or less it behaves correctly.

With old versions up to 3.1.8, I was doing fine without these problems.
#7
I am not aware that we changed much (except the automatic imdb ratings which take up some memory as I recognized a few days ago)... but the syntax for passing the JVM params slightly changed.. are you sure it has been picked up by tmm? https://www.tinymediamanager.org/help/fa...ace-errors

our advice with such a big library is: split it. since tmm is "portable" and all data is stored inside the tmm folder, you can have multiple ones (tmm movies & tmm tv shows). or just increase the memory even more (I am still a bit perplexed that this big library even worked with a XMX of 1G Big Grin looks like we've done a rather good job Tongue)
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
#8
I'm testing on Unraid 6.8.3 version 3.1.10 on a docker that a developer has created and it's perfect, it just loaded 1500 tv show without problems. The difference is that in addition to being Linux, this machine is the one that has the contents locally.
#9
Solved, I was using the parameter -Xmx1024m with the system java and I saw that it had to be changed in the launcher.yml.
#10
You can do so also in the settings of tMM itself (General -> System -> Memory Settings):
Image

Logout Mark Read Team Forum Stats Members Help
java.lang.OutOfMemoryError: Java heap space0