Sign inSign up

jacksondavenport/python-memory-app

By jacksondavenport

Updated 7 months ago

Image
0

1.3K

jacksondavenport/python-memory-app repository overview

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 intervals
  • BLOCK_SIZE to specify how long the random character string should be

The defaults are 0.1 seconds and 10,000 characters. This was roughly turning into 1 MB increase every 10 seconds.

Tag summary

Content type

Image

Digest

sha256:b3636c82a

Size

43.6 MB

Last updated

7 months ago

docker pull jacksondavenport/python-memory-app