This container image isn't really a "memory leak" but really simple while loop that continually appends a random character string to an array. Consuming more and more memory, until eventually it (hopefully) hits the set container limit and the orchestrator OOM kills it.
This can be configured with the environment variables:
WAIT_TIME to specify how long to wait in between appending intervalsBLOCK_SIZE to specify how long the random character string should beThe defaults are 0.1 seconds and 10,000 characters. This was roughly turning into 1 MB increase every 10 seconds.
Content type
Image
Digest
sha256:b3636c82a…
Size
43.6 MB
Last updated
7 months ago
docker pull jacksondavenport/python-memory-app