[lxc-users] High Memory utilization with lxc containers

Ajith Adapa ajith.adapa at gmail.com
Sat Jul 5 10:03:23 UTC 2014


Hi,

I am not exactly sure if LXC is the reason but atleast I am seeing
that memory is exhausted after running lxc containers for more than a
day.

Setup information:
Guest VM running Fedora 20 with 2GB RAM and 4 logical cores assigned.
It is only used for running LXC containers. lxc version 1.0.3

I have 4 containers created using the default templates. When I
started all the containers the amount of free ram available is around
500MB (As per the output from top).

After 24 hours, I have got only 100MB free as per top command output.
I am not starting any process inside lxc-containers after starting
them.

# lxc-ls -f
NAME        STATE    IPV4         IPV6  AUTOSTART
-------------------------------------------------
centostest  RUNNING  10.12.4.101  -     NO
debiantest  RUNNING  10.12.4.117  -     NO
f19i686     RUNNING  10.12.4.122  -     NO
ubuntu      RUNNING  10.12.4.131  -     NO

As per below output systemd-journald seems the culprit but I am not sure why.

# ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5
 2.7  0.0 124036  1997 /usr/lib/systemd/systemd-journald
 1.2  0.0 325168   558 /usr/bin/python /usr/sbin/firewalld --nofork --nopid
 0.6  0.0 511304  1348 /usr/lib/polkit-1/polkitd --no-debug
 0.6  0.0 102340  1342 /sbin/dhclient -H blrlt1144 -1 -q -lf
/var/lib/dhclient/dhclient--virbr0.lease -pf
/var/run/dhclient-virbr0.pid virbr0
 0.4  0.0  40636     1 /usr/lib/systemd/systemd --switched-root
--system --deserialize 26

Have anyone faced similar issue ?

Regards,
Ajith


More information about the lxc-users mailing list