Limit Python VM memory

前端 未结 3 1914
鱼传尺愫
鱼传尺愫 2020-12-03 10:57

I\'m trying to find a way to limit the memory available for the Python VM, as the option \"-Xmx\" in the Java VM does. (The idea is to be able to play with the MemoryError e

3条回答
  •  一个人的身影
    2020-12-03 11:21

    On *nix you can play around with the ulimit command, specifically the -m (max memory size) and -v (virtual memory).

提交回复
热议问题