0

Suppose I run some code which I know may contain a lot of defects. Those may be memory leaks or just bugs causing very high memory consumption. So let's say that today 8 gigabytes RAM is usual amount and that code gets crazy and consumes 8 gigabytes, then another 8 gigabytes forcing excessive page file operations, then 8 more gigabytes until the whole system just stalls. I tried that - Windows gets mostly unresponsive and useless in such case, the best bet is just powering the machine down and up.

Is there any way to protect the system from such cases? Perhaps some programmatic limits of how much memory the process is allowed to use?

Jive Dadson
  • 16,680
  • 9
  • 52
  • 65
sharptooth
  • 167,383
  • 100
  • 513
  • 979

0 Answers0