遭遇Out of memory: Kill process or sacrifice child

在调试一个爬虫程序时,发现一个非常奇怪的问题,程序总是在运行一段时候会被系统给Kill掉,在syslog里看到:

Nov 9 11:52:20 iZrj9iqn00z9x3jgz1v2t5Z kernel: [5542452.233851] Out of memory: Kill process 10526 (python3) score 738 or sacrifice child

服务器是1台2G内存的云服务器,内存不够?那就暂时使用虚拟内存扩充上来:
swapoff -a
dd if=/dev/zero of=swapfile bs=1024 count=4000000
mkswap swapfile
swapon swapfile

这样就临时加了4G虚拟内存上来,保证程序在峰值运行时不被kill。

参考:https://plumbr.io/blog/memory-leaks/out-of-memory-kill-process-or-sacrifice-child


已发布

分类

,

来自

评论

《 “遭遇Out of memory: Kill process or sacrifice child” 》 有 13 条评论

  1. generique kamagra prescrire sun medicament pharmacie

    comment obtenir kamagra en ligne

  2. buying enclomiphene cheap pharmacy

    cheap enclomiphene united kingdom

  3. androxal from mexico without a perscription

    cheapest buy androxal generic best price

  4. mail order flexeril cyclobenzaprine canada

    discount flexeril cyclobenzaprine generic united states

  5. get dutasteride price dubai

    discount dutasteride cheap fast shipping

  6. buy fildena buy japan

    fildena shipped overnight without a prescription

  7. generic gabapentin sildenafil canadian co no prescription

    discount gabapentin cost at walmart

  8. itraconazole without a prescription

    ordering itraconazole no prescription mastercard

  9. online order staxyn purchase generic

    How to get a to prescript staxyn

  10. how to buy avodart cheap with fast shipping

    online order avodart generic tablets

  11. discount rifaximin price for prescription

    cheap generic rifaximin canada

  12. buy cheap xifaxan canadian sales

    discount xifaxan generic vs brand name

  13. kde najdu nejlevnト嬲ナ。テュ cenu pro kamagra

    paypal za kamagra

回复 cheapest buy staxyn cheap real 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注