[lxc-devel] LXC fails to allocate memory

Federico Alves venefax at gmail.com
Fri Jul 3 13:23:02 UTC 2015


 free -g
-bash: fork: Cannot allocate memory
[root at skype src]# reboot
Failed to start reboot.target: Connection timed out
Failed to open /dev/initctl: No such device or address
Failed to talk to init daemon.

On Fri, Jul 3, 2015 at 9:15 AM, Federico Alves <venefax at gmail.com> wrote:

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


More information about the lxc-devel mailing list