#StackBounty: #lxc Slow running Cron tasks getting stuck in container

Bounty: 50

It is a Debian 9 container running on a Debian 9 host.

Every now and then the container would grind to a halt. It is usually a slow task like apticron or munin. My last test was an idle container on an idle server, and the same thin happened again. Over 300 Cron processes.

The host copes with all these tasks and more, it is just inside a container that these problems start.

Any tips or suggestions? Thanks

root       816  0.0  0.0  54812  3860 ?        Ss   Aug28   0:00 [lxcmonitor] /srv/lxc test-01
root       908  0.0  0.0  28236  4428 ?        Ss   Aug28   0:00  _ /sbin/init
root      1266  0.0  0.0  32968  3956 ?        Ss   Aug28   0:00      _ /lib/systemd/systemd-journald
root      1445  0.0  0.0  37080  2700 ?        Ss   Aug28   0:00      _ /sbin/rpcbind -w
statd     1466  0.0  0.0  37280  2908 ?        Ss   Aug28   0:00      _ /sbin/rpc.statd
root      1491  0.0  0.0  27568   228 ?        Ss   Aug28   0:00      _ /usr/sbin/rpc.idmapd
root      1496  0.0  0.0  27504  2768 ?        Ss   Aug28   0:00      _ /usr/sbin/cron -f
root      9455  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     10293  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     11147  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     12047  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     12881  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     13746  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     14592  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     15407  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     15425  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     16286  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     17115  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     17958  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     18838  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     19645  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     19671  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     20522  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     21377  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     22211  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     23052  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     23900  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f
root     24743  0.0  0.0  52788  2800 ?        S    Aug28   0:00      |   _ /usr/sbin/CRON -f


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.