小编onu*_*tik的帖子

“无法分配内存”,而似乎没有进程正在耗尽内存

我不擅长服务器问题,非常感谢任何帮助。当尝试在 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)

memory linux python top amazon-ec2

8
推荐指数
1
解决办法
4万
查看次数

标签 统计

amazon-ec2 ×1

linux ×1

memory ×1

python ×1

top ×1