Open darwindu opened 1 year ago
https://stackoverflow.com/questions/19548027/ffmpeg-closes-with-return-code-137
Not enough memory or some other limits set?
https://stackoverflow.com/questions/19548027/ffmpeg-closes-with-return-code-137
Not enough memory or some other limits set?
Memory analysis: Test environment with 2GB of memory, upload video size of 25M, and use about 10M for compression. The memory is enough
Is the limits? Which value should be modified? open file=1048576 【ulimit -a】:
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 251517
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
【log】
137 How to make an error in the end is decided?
https://stackoverflow.com/questions/19548027/ffmpeg-closes-with-return-code-137 Not enough memory or some other limits set?
Memory analysis: Test environment with 2GB of memory, upload video size of 25M, and use about 10M for compression. The memory is enough
Is the limits? Which value should be modified? open file=1048576 【ulimit -a】:
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 251517 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1048576 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
【log】
How to make an error in the end is decided?
The exit code 137 is returned by the underlying operating system, and there is nothing I can do from java to catch this. I can just report it as the cause, why the process did abort.
When you say that the OS (Docker) has 2GB of ram, then this is not the free ram, but overall ram of this instance. This memory is then shared by Docker/Java/ffmpeg and all other processes running in that instance.
Have you tried doubling ram?
The Win10 environment is running normally;
Docker environment running Exception; Docker OS: Linux x86_64 x86_64 GNU/Linux Linux version 4.14.105-19-0008 (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC))
How to solve ?
log: