High CPU during download #31
-
Can anyone else reproduce high CPU while downloading? Not tested yet, but I would bet that CPU is not that high with JD2 and openjdk directly on the same host. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Good question, I didn't check the CPU load, compared to JD2 and OpenJDK on the same host. jdownloader/docker-entrypoint.sh Line 113 in 50f2cef Anyway did you try these options to limit the CPU usage of the container? And if anyone has some metrics on JD2 load in a container and on the host machine, or similar issues, please let me know :) |
Beta Was this translation helpful? Give feedback.
-
No problem, thank you for sharing your experience, now we know that JD2 requires a lot of CPU during the downloads and that we can customize the container options to restrict CPU resources. |
Beta Was this translation helpful? Give feedback.
Good question, I didn't check the CPU load, compared to JD2 and OpenJDK on the same host.
By default Docker gives to the container full access to CPUs.
So I don't see why it will take more resource though Docker, I think you will have the same CPU load without Docker.
This image starts JD2 through OpenJDK exactly the same way you start it on your host machine.
See here :
jdownloader/docker-entrypoint.sh
Line 113 in 50f2cef
Anyway did you try these options to limit the CPU usage of the container?
https://docs.docker.com/config/containers/resource_constraints/#cpu
And if anyone has some met…