Skip to content

High CPU during download #31

Closed Answered by antlafarge
loeffelpan asked this question in Q&A
Discussion options

You must be logged in to vote

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 :

java $JAVA_OPTIONS -Djava.awt.headless=true -jar $JDownloaderJarFile &> /dev/null &

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…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@loeffelpan
Comment options

Answer selected by loeffelpan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants