Limiting memory of filebot (java)?
Posted: 20 Mar 2020, 11:56
So it seems the java process for filebot uses 3.3G of my measly 1G qnap. How can I configure it to limit the memory, and what is the recommended size?
The ultimate TV and Movie Renamer
https://www.filebot.net/forums/
Code: Select all
CPU/MEM: 4 Core / 796 MB Max Memory / 21 MB Used Memory
Code: Select all
[~] # java -XX:+PrintFlagsFinal -Xmx796m -version | grep -Ei "maxheapsize|maxram"
size_t MaxHeapSize = 834666496 {product} {command line}
uint64_t MaxRAM = 137438953472 {pd product} {default}
uintx MaxRAMFraction = 4 {product} {default}
double MaxRAMPercentage = 25.000000 {product} {default}
size_t SoftMaxHeapSize = 834666496 {manageable} {ergonomic}
Code: Select all
[~] # java -XX:+PrintFlagsFinal -XX:MaxRAM=796m -version | grep -Ei "maxheapsize|maxram"
size_t MaxHeapSize = 209715200 {product} {ergonomic}
uint64_t MaxRAM = 834666496 {pd product} {command line}
uintx MaxRAMFraction = 4 {product} {default}
double MaxRAMPercentage = 25.000000 {product} {default}
size_t SoftMaxHeapSize = 209715200 {manageable} {ergonomic}
Code: Select all
[~] # java -XX:+PrintFlagsFinal -XX:MaxRAM=1g -XX:MaxRAMFraction=2 -version | grep -Ei "maxheapsize|maxram"
OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
size_t MaxHeapSize = 536870912 {product} {ergonomic}
uint64_t MaxRAM = 1073741824 {pd product} {command line}
uintx MaxRAMFraction = 2 {product} {command line}
double MaxRAMPercentage = 50.000000 {product} {default}
size_t SoftMaxHeapSize = 536870912 {manageable} {ergonomic}
Code: Select all
JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xint -XX:+UseSerialGC -XX:CompressedClassSpaceSize=75m -XX:MaxMetaspaceSize=75m -Xshare:off -XX:NativeMemoryTracking=summary -XX:MaxRAM=1g -XX:MaxRAMPercentage=70"
Code: Select all
filebot -script fn:sysinfo
filebot -clear-cache
touch Alias.1x01.avi
time filebot -rename Alias.1x01.avi -non-strict --action TEST --log INFO
Code: Select all
...
CPU/MEM: 4 Core / 518 MB Max Memory / 25 MB Used Memory
OS: Linux (aarch64)
...
[TEST] from [Alias.1x01.avi] to [Alias - 1x01 - Truth Be Told.avi]
real 0m46.755s
user 1m20.938s
sys 0m0.781s
Code: Select all
...
CPU/MEM: 1 Core / 127 MB Max Memory / 24 MB Used Memory
OS: Linux (arm)
...
[TEST] from [Alias.1x01.avi] to [Alias - 1x01 - Truth Be Told.avi]
real 3m57.927s
user 3m50.890s
sys 0m1.290s