I'm attaching the script I've been using to consume and hold memory, mem-waster-pct.py. It can be invoked with:
nohup /usr/bin/python3 /root/mem-waster-pct.py -p 85
This will cause the script to consume memory by appending data to a list until 85% of memory is consumed by all processes. It will then hold that memory until the process is killed.
I'm attaching the script I've been using to consume and hold memory, mem-waster-pct.py. It can be invoked with:
nohup /usr/bin/python3 /root/mem- waster- pct.py -p 85
This will cause the script to consume memory by appending data to a list until 85% of memory is consumed by all processes. It will then hold that memory until the process is killed.