<div dir="ltr"><div class="gmail_default" style="font-size:small">I get have 500 containers and wrote a script to start them one by one. After each is started I do a <br></div><div class="gmail_default" style="font-size:small">"free -g" and continue. <br></div><div class="gmail_default" style="font-size:small">After 150 containers are started, the whole machine dies and needs to be powered off<br><br>Started 150<br>              total        used        free      shared  buff/cache   available<br>Mem:            251          39         183           0          28         202<br>Swap:            17           0          17<br>lxc-start: monitor.c: lxc_monitord_spawn: 312 Cannot allocate memory - failed to fork<br>lxc-start: lxccontainer.c: do_lxcapi_start: 714 Cannot allocate memory - Error doing dual-fork<br>lxc-start: lxc_start.c: main: 344 The container failed to start.<br>lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.<br>lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.<br>lxc-start: lxc_start.c: main: 344 The container failed to start.<br>lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.<br>lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.<br>Started 151<br><br></div><div class="gmail_default" style="font-size:small">at the end<br>bash: fork: Cannot allocate memory<br>[root@skype src]#<br>Broadcast message from systemd-journald@skype (Fri 2015-07-03 08:53:25 EDT):<br><br>systemd[1]: Caught <ABRT>, cannot fork for core dump: Cannot allocate memory<br><br><br>Broadcast message from systemd-journald@skype (Fri 2015-07-03 08:53:25 EDT):<br><br>systemd[1]: Freezing execution.<br><br></div><div class="gmail_default" style="font-size:small"><br><br></div></div>