I am running into issues with Java heap space. This is very possibly due to me being new at everything Linux/Synology.
My setup is a "JDtoFilebot" script that I call from the command line (for now, will figure out the JDEventScripter later).
This setup does work, generally speaking. However, I am getting Java heap space errors in two scenarios:
1) When I run this on a lot of files (8 upwards) -> Workaround: Process less files at once (but is that best practice?).
2) When I run this on one specific file. -> No workaround.
I am posting my console output below. Also, I would like to understand: Is it better to run filebot many times (one file each time), or should filebot be able to handle 100+ files at each go and serialize them internally?
My script
Code: Select all
LOG="/volume1/Downloads/amc.log"
EXC="/volume1/Downloads/amc.txt"
SERIEN="/volume1/Media/{Plex}"
FILME="/volume1/Media/{Plex}"
/var/packages/filebot/target/filebot.sh -script fn:amc --lang en --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "animeFormat=$ANIME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y "artwork=y" --def clean=y
/var/packages/filebot/target/filebot.sh -script fn:cleaner "$1" --def root=y
Code: Select all
sh jdtofilebot.sh /volume1/Downloads/B/
Code: Select all
sh jdtofilebot.sh /volume1/Downloads/B/ -xmx300M
Console Output:
Code: Select all
sh jdtofilebot.sh /volume1/Downloads/B/
Locking /volume1/Downloads/amc.log
Run script [fn:amc] at [Mon Aug 06 23:06:44 CEST 2018]
Parameter: seriesFormat = /volume1/Media/{Plex}
Parameter: movieFormat = /volume1/Media/{Plex}
Parameter: animeFormat =
Parameter: unsortedFormat =
Parameter: unsorted = y
Parameter: artwork = y
Parameter: clean = y
Argument[0]: /volume1/Downloads/B
Input: /volume1/Downloads/B/DDLValley.me_The.15.17.to.Paris.2018.BDRip.x264-GECKOS.mkv
Aug 06, 2018 11:06:50 PM net.sf.ehcache.store.disk.DiskStorageFactory <init>
WARNING: The index for data file /var/packages/filebot/target/data/.../cache/0/data_0.data is out of date, probably due to an unclean shutdown. Deleting index file /var/packages/filebot/target/data/.../cache/0/data_0.index
Java heap space
java.lang.OutOfMemoryError: Java heap space
at org.tukaani.xz.ArrayCache.getByteArray(Unknown Source)
at org.tukaani.xz.lz.LZDecoder.<init>(Unknown Source)
at org.tukaani.xz.LZMA2InputStream.<init>(Unknown Source)
at org.tukaani.xz.LZMA2Decoder.getInputStream(Unknown Source)
at org.tukaani.xz.BlockInputStream.<init>(Unknown Source)
at org.tukaani.xz.SingleXZInputStream.read(Unknown Source)
at org.tukaani.xz.XZInputStream.read(Unknown Source)
at net.filebot.util.ByteBufferOutputStream.transferFrom(ByteBufferOutputStream.java:102)
at net.filebot.util.ByteBufferOutputStream.transferFully(ByteBufferOutputStream.java:112)
at net.filebot.util.ByteBufferOutputStream.transferFully(ByteBufferOutputStream.java:106)
at net.filebot.CachedResource.lambda$getBytes$3(CachedResource.java:154)
at net.filebot.CachedResource$$Lambda$28/963269035.transform(Unknown Source)
at net.filebot.CachedResource.lambda$get$1(CachedResource.java:99)
at net.filebot.CachedResource$$Lambda$31/517210187.apply(Unknown Source)
at net.filebot.Cache.computeIf(Cache.java:90)
at net.filebot.CachedResource.get(CachedResource.java:82)
at net.filebot.media.ReleaseInfo.lambda$resource$19(ReleaseInfo.java:490)
at net.filebot.media.ReleaseInfo$$Lambda$38/914507705.get(Unknown Source)
at net.filebot.TransformedResource.get(Resource.java:58)
at net.filebot.MemoizedResource.get(Resource.java:36)
at net.filebot.media.ReleaseInfo.getSeriesMappings(ReleaseInfo.java:368)
at net.filebot.media.MediaDetection.matchSeriesMappings(MediaDetection.java:467)
at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:353)
at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:323)
at net.filebot.cli.ScriptShellBaseClass.detectSeriesName(ScriptShellBaseClass.java:261)
at net.filebot.cli.ScriptShellBaseClass.detectSeriesName(ScriptShellBaseClass.java:249)
Failure (°_°)
Done ヾ(@⌒ー⌒@)ノ