Home  >  Q&A  >  body text

python - ubuntu下利用crontab定时运行程序的休眠问题

自己在云服务器上写了个爬虫,每天早上定时七点运行。
原本只要一两个小时就跑完了,这几天发现都要跑到下午三四点才能跑完。
用ps命令查看如图所示

对linux的了解不是很深,个人理解应该是大部分时间都被休眠了,没有在跑,请问有什么好的解决办法吗?

天蓬老师天蓬老师2710 days ago479

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:08:28

    Why don’t you just run that crawler and see how long it takes to see where the problem is

    reply
    0
  • Cancelreply