Page 1 of 1
Low Memory Limit Debian
Posted: 22 Dec 2020, 03:54
by bookedirl
I'm getting a Low Memory Limit and JNA Native/MediaInfo errors.
Here's one of the errors as well as part of the sysinfo script. I tried adding more to each but for whatever reason the forum keeps giving me an error when I paste the code.
Code: Select all
Dec 22, 2020 3:35:54 AM net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask call
SEVERE: Disk Write of search/movie?query=songbird&year=2020 failed:
Code: Select all
root@DietPi:~/scripts# filebot -script 'fn:sysinfo'
Low Memory Limit: 202 MB
* Consider using JAVA_OPTS -Xmx256m or higher
* Consider using -no-index on low-memory devices
FileBot 4.9.2 (r8046)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/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
Any idea's what would be causing this? I don't recall ever have to mess with memory limits before.
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 03:57
by rednoah
1.
How much memory do you have? What does
cat /proc/meminfo say?
Please share the complete
filebot -script fn:sysinfo output
(and not just the first few lines) via
pastebin:
https://pastebin.com/
2.
This is very severe and rather uncommon. If a disk write fails, then that's a bad bad sign. If it's a local drive, then the drive might be physically failing. If it's a remote network drive, then perhaps it's just a network issue. Could be anything, but if random write operations fail, then FileBot
(and any other software running) will fail in strange an unpredictable ways.
bookedirl wrote: ↑22 Dec 2020, 03:54
Code: Select all
Dec 22, 2020 3:35:54 AM net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask call
SEVERE: Disk Write failed
Note that disk write failures are rather unrelated to low memory warnings, so we have 2 distinct and unrelated problems at hand here.
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 04:14
by bookedirl
Code: Select all
root@DietPi:~# cat /proc/meminfo
MemTotal: 764340 kB
MemFree: 567544 kB
MemAvailable: 619096 kB
Buffers: 14620 kB
Cached: 85216 kB
SwapCached: 0 kB
Active: 115992 kB
Inactive: 47732 kB
Active(anon): 65636 kB
Inactive(anon): 7076 kB
Active(file): 50356 kB
Inactive(file): 40656 kB
Unevictable: 1444 kB
Mlocked: 1444 kB
SwapTotal: 1098748 kB
SwapFree: 1098748 kB
Dirty: 12 kB
Writeback: 0 kB
AnonPages: 65412 kB
Mapped: 42068 kB
Shmem: 7372 kB
KReclaimable: 11188 kB
Slab: 21760 kB
SReclaimable: 11188 kB
SUnreclaim: 10572 kB
KernelStack: 1016 kB
PageTables: 1548 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1480916 kB
Committed_AS: 200440 kB
VmallocTotal: 1294336 kB
VmallocUsed: 1708 kB
VmallocChunk: 0 kB
Percpu: 416 kB
CmaTotal: 65536 kB
CmaFree: 64144 kB
filebot -script 'fn:sysinfo'
https://pastebin.com/dMGpyHsS
yea it's quite possible the hard drive I have attached is dead. I have a new one arriving tomorrow.
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 04:21
by rednoah
Code: Select all
Low Memory Limit: 190 MB
* Consider using JAVA_OPTS -Xmx256m or higher
...
CPU/MEM: ARMv7 Processor rev 4 (v7l) | BCM2835 [MemTotal: 782 MB | MemFree: 438 MB | MemAvailable: 559 MB | SwapTotal: 1.1 GB | SwapFree: 1.1 GB]
...
Since you have 512 MB of available memory, why not allow FileBot to use that if necessary? Just set
JAVA_OPTS before calling
filebot like so:
Code: Select all
export JAVA_OPTS=-Xmx512m
filebot -script fn:sysinfo
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 04:28
by bookedirl
Awesome, that worked. I didn't even know about the JAVA_OPTS.
Do I need to worry about the other two JNA Native and Media Info? All the info I tried searching for is all outdated from previous guides.
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 05:16
by bookedirl
It appears it doesn't stick after reboot. Is there something else that could be changing this?
Re: Low Memory Limit Debian
Posted: 22 Dec 2020, 06:07
by rednoah
Although you can set system environment variable (see Google) I'd recommend setting environment variables in your user profile script (see Google).