May 2018
Intermediate to advanced
512 pages
11h 3m
English
To get a better understanding of the performance characteristics of our server, let's put them under some load and stress them:
$ docker run --name <imageName> -d -p 8080:<internal_port> <imageRepo>
If you're using npm Scripts for Docker, execute the following command to start your container:
$ npm run docker:debug
$ curl -L http://bit.ly/load-test-bash | bash -s 100 "http://localhost:8080"
This script will send 100 requests/second to the server until you terminate it.
Here are high-level observations of CPU and memory utilization:
| CPU Utilization Statistics ... |
Read now
Unlock full access