Page 1 of 1

[SOLVED] [armv5tel] QNAP Debian, AMC doesn't do anything (Zero VM, interpreted mode)

Posted: 19 Jan 2019, 13:08
by vstancea
Hello,

I used Filebot for years now and all worked like a charm, until I was forced to format my NAS and replaced the original Firmware with Debian since the the QNAP firmware was getting to lagy for my old NAS (QNAP 212P). After installing Java, I've downloaded Filebot 4.7.9 Portable.

The problem that I'm facing is that it runs awfully slow and eats all my CPU. I've run the AMC script and after 1h, it didn't pass the "input" stage, my CPU is at almost 100% and my load is at 1.2-1.4. I even Used the Xms256m and Xmx351m to make sure that I have enough memory allocated for the script to run smoothly but still no luck.

Before I used to use Filebot 4.7.2 which I cannot seem to find anywhere :|

I've included all the info I thought my be of any help.

Code: Select all

java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13)
OpenJDK Zero VM (build 25.181-b13, interpreted mode)

Code: Select all

javac -version
javac 1.8.0_181

Code: Select all

free -h
              total        used        free      shared  buff/cache   available
Mem:           501M         81M         98M        2.8M        322M        406M
Swap:          488M        2.1M        486M

Code: Select all

export JAVA_OPTS="-Xms256m"
export JAVA_OPTS="-Xmx351m"
sh FileBot/filebot.sh -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path ([file:/home/vstancea/FileBot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-03-16 (r516)
Groovy: 2.4.10
JRE: OpenJDK Runtime Environment 1.8.0_181
JVM: 32-bit OpenJDK Zero VM
CPU/MEM: 1 Core / 340 MB Max Memory / 7 MB Used Memory
OS: Linux (arm)
Package: PORTABLE
uname: Linux 192-168-0-100 4.9.0-8-marvell #1 Debian 4.9.130-2 (2018-10-27) armv5tel GNU/Linux

Code: Select all

#!/bin/sh -xu

# Input Parameters
ARG_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
ARG_NAME="$TR_TORRENT_NAME"
ARG_LABEL="N/A"

# Configuration
CONFIG_OUTPUT="/home/vstancea/Media"
CONFIG_INPUT="/home/vstancea/Downloads/Completed/"

export JAVA_OPTS='-Xms256m'
export JAVA_OPTS='-Xmx351m'
sh /home/vstancea/FileBot/filebot.sh -script fn:amc --output "$CONFIG_OUTPUT" --action move --conflict skip -non-strict "$CONFIG_INPUT" --log-file amc.log --def unsorted=n music=n artwork=n excludeList=".excludes"

Re: QNAP Debian, AMC doesn't do anything

Posted: 19 Jan 2019, 14:14
by rednoah
1.
Zero VM (interpreted mode) is known to be extremely slow on arm devices. Have you tried the Oracle Java 8 runtime instead?

Code: Select all

OpenJDK Zero VM (build 25.181-b13, interpreted mode)
My Java Installer package which is part of the FileBot repository will install the latest Oracle JRE for you:
viewtopic.php?f=13&t=6014

:!: EDIT: This won't work for armv5tel machines though.



2.
Please try the latest release:
https://get.filebot.net/filebot/FileBot_4.8.5/

You can add lots of debugging output like so, which might give as a clue as to where it starts running out of memory, if that is indeed the case:

Code: Select all

export JAVA_OPTS="-Dnet.filebot.logging.debug=ALL -Dnet.filebot.logging.time=true -Dnet.filebot.web.WebRequest.log.response=true"
You'll want to run test manually, or redirect IO, so you get full console output and see errors and warnings:
viewtopic.php?f=4&t=3067



EDIT:

Sorry, hadn't noticed you're on armv5tel, which means you're gonna have a hard time making things run well on that CPU, it's just too old:

Code: Select all

Linux 192-168-0-100 4.9.0-8-marvell #1 Debian 4.9.130-2 (2018-10-27) armv5tel GNU/Linux
You're best option is to get one of the Oracle Java SE Embedded builds while you still can:
https://www.oracle.com/technetwork/java ... index.html

Re: [armv5tel] QNAP Debian, AMC doesn't do anything (Zero VM, interpreted mode)

Posted: 21 Jan 2019, 14:10
by vstancea
Hi rednoah,

Appreciate the fast response :)

I'll give Oracle Java SE Embedded a try and come back with the results.

Re: [armv5tel] QNAP Debian, AMC doesn't do anything (Zero VM, interpreted mode)

Posted: 23 Jan 2019, 17:51
by vstancea
Hi rednoah,

just installed Java SE Embedded and everything seems to work wonderful.

Thanks for the great work and support, you are awesome :)

PS: how can I change the topic to [SOLVED]?

Re: [SOLVED] [armv5tel] QNAP Debian, AMC doesn't do anything (Zero VM, interpreted mode)

Posted: 28 Jan 2019, 17:09
by rednoah
Hi. I've got an alternative implementation of the amc script core logic, which may or may not work significantly better on older hardware.

Mind giving it a try on your NAS to see if it runs any better?

Code: Select all

filebot -script dev:amc-universal ...

Re: [SOLVED] [armv5tel] QNAP Debian, AMC doesn't do anything (Zero VM, interpreted mode)

Posted: 16 Feb 2019, 18:31
by vstancea
Hi rednoah,

I'm terribly sorry, i haven't checked the post in a long while. I'll check the script and report back.