Skip to content

Instantly share code, notes, and snippets.

@ksaylor11
Created December 22, 2018 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksaylor11/1f08d5a8492ca8d5d08a15b8f3e6cc83 to your computer and use it in GitHub Desktop.
Save ksaylor11/1f08d5a8492ca8d5d08a15b8f3e6cc83 to your computer and use it in GitHub Desktop.
python script to eat up specified amount of memory
# script to use up 512 MB of memory
import time
some_str = bytearray(512000000)
while True:
time.sleep(60)
print('still holding on')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment