I hope you solved this already but you can solve any kind of resources usage really quick by using containers. Docker is the most common one