我不擅长服务器问题,非常感谢任何帮助。当尝试在 linux 机器上启动 python/django shell 时,我得到OSError: [Errno 12] Cannot allocate memory.
free -m 似乎确认我内存不足:
total used free shared buffers cached
Mem: 590 560 29 0 3 37
-/+ buffers/cache: 518 71
Swap: 0 0 0
Run Code Online (Sandbox Code Playgroud)
但我看不出是什么在用topor耗尽内存ps aux:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 24336 908 0 S 0.0 0.2 0:00.68 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 …Run Code Online (Sandbox Code Playgroud)