mvberg / ib-gateway-docker

Interactive Brokers Trading Gateway running in Docker
MIT License
224 stars 105 forks source link

Reducing CPU and memory usage by using ubuntu:19.04 image #18

Open dvasdekis opened 4 years ago

dvasdekis commented 4 years ago

Hi folks, I am performing some intensive reads (300 streaming tickers) off the IB gateway and I was hitting a high level of CPU usage (100%) with the image as-is. I confirmed that all the CPU usage was being used by the java executable within the image also.

I managed to reduce this to about 50% by using ubuntu:19.04 as the base image instead of 16.04. I'll raise a pull request with the change.

ccravens commented 4 years ago

For others reading this I had to use the image name:

ubuntu:19.10
EMCP commented 4 years ago

there are also security concerns with using something as old as 16.04

You may want to even go all the way to the latest LTS

ubuntu:20.04