Use Alpine + PHP to soak up memory. Used for testing --memory --memory-swap and --memory-reservation
10K+
This container is designed to exhaust the memory constraints of the running container.
$ docker run -it --memory=128m --memory-swap=0 gisleburt/my-memory-hog
Note: If you don't restrict memory on the container, it will run to 1GB usage before PHP kills the script itself.
Content type
Image
Digest
Size
6.6 MB
Last updated
almost 10 years ago
docker pull gisleburt/my-memory-hog