OutOfMemoryError: Java heap space
Posted: 25 Jul 2013, 10:32
When trying to fetch subtitles for a large number of files via Cronjob, I always get an out-of-memory exception from the Java VM.
Is there a way to increase the initial and maximum heap size?
Is there a way to increase the initial and maximum heap size?
Code: Select all
/volume1/public/filebot.sh -get-missing-subtitles /volume1/video/TV\ Shows/
-r --lang en --output srt --encoding utf-8 -non-strict
Get [English] subtitles for 1670 files
Looking up subtitles by filehash via OpenSubtitles
Lookup by hash failed: null
Looking up subtitles by filehash via Sublight
Jul 25, 2013 11:27:46 AM net.sourceforge.filebot.mediainfo.MediaInfo <clinit>
WARNING: Failed to preload libzen
Lookup by hash failed: Unable to load 32-bit native library 'mediainfo'
Searching for [..>40 shownames...] at [OpenSubtitles]
OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.<init>(ArrayList.java:132)
at net.sourceforge.filebot.similarity.Matcher.match(Unknown Source)
at net.sourceforge.filebot.subtitle.SubtitleUtilities.matchSubtitles(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.lookupSubtitleByFileName(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.getSubtitles(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.getMissingSubtitles(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)