I need to run a bash command to simulate a memory leak in Linux to test my web server performance. I have used Stree-ng tool to stress memory, but I noticed that CPU usage reaches 100% when this command starts running. Now I have two question:
In reality, a usual memory related anomaly in web servers, has this pattern of increasing both CPU and Memory or just Memory?
Is there a way that I can increase memory usage without a significant increase of CPU?