cannot allocate memory errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
High
|
Unassigned |
Bug Description
Hi,
We have an instance where a controller has free memory, but juju keeps logging this kind of errors :
2017-03-08 14:13:37 ERROR juju.worker.
$ free -m
total used free shared buff/cache available
Mem: 7982 6934 218 83 829 669
Swap: 0 0 0
I think that's because juju will use exec.Command() to run external commands, and this uses a simple clone() as show below from an strace -e process :
[pid 13429] clone(child_
Using clone() this way means that the address space of the calling process (jujud) will be copied, and jujud is using a hefty amount of memory :
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 13429 360 28.2 4031016 2311676 ? Sl 09:48 974:17 /var/lib/
This was already reported and discussed in https:/
With the new juju2 way of having controllers host multiple models, increasing the resources used by jujud, this bug is, presumably, more likely to appear.
Thank you
tags: | added: canonical-is |
Changed in juju: | |
importance: | Undecided → High |
This sounds like LP:1516676, which also refers to LP:1382556.