- update the docker-compose of activeMQ in following manner:
change the image: ahsanraza/activemq-stress:latest
add:
cpus: 4.0
(means that there are 4 cpus in the host machine and assiging all cpus to this container to use
this will set the following param as:
cpus_quotas will be 400000
cpu_period will be 100000)
- up the activemq image after saving the compose file
- exec -it the activemq container and run the following command:
stress --cpu 8 --timeout 30m
(cpus are set by host here u can write even 12 but it will detect from host)