Extreme RAM and SWAP usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
High
|
Simon Poirier | ||
landscape-client (Ubuntu) |
Fix Released
|
High
|
Simon Poirier | ||
Xenial |
Fix Released
|
High
|
Simon Poirier | ||
Bionic |
Fix Released
|
High
|
Simon Poirier | ||
Cosmic |
Fix Released
|
High
|
Simon Poirier |
Bug Description
[Impact]
* Memory usage of landscape processes abnormally grows, over time,
even for processes which are generally idle and have no reason to
grow.
* Most of that memory leak is due to uninitialized python-twisted
logging facilities buffering logs and their context. This fix
Initializes logging with a null handler to have those unused log
entries discarded.
* Upstream twisted has mitigated part of the issue in recent releases
by reducing the default buffer size. Because of that, the impact
of this bug is greater on xenial.
[Test Case]
* register a landscape client and log the memory growth over a day
* the effect is most noticeable on /usr/bin/
the other processes
* the memory difference on recent releases (bionic and up) is
expected to be smaller (~10mb on bionic instead of 200mb on xenial)
[Regression Potential]
* The fix initializes twisted logging, which is unused by landscape
so it is unlikely to have an impact.
* The fix comes from recommendations on the upstream bug:
https:/
[Original description]
This has been noticed on several systems of mine, all 16.04.
Landscape Client takes up, over time, an *extreme* amount of system resources.
On a 1024MB RAM system, within 3 days to a month, Landscape Client and it's python scripts (possibly cached data?) are consuming massive quantities of memory - in the realm of 512MB RAM and over 400MB of the Swap on the system.
This is repeatably shown in other systems of mine as well. Is there a memory leak or something in landscape-client that would contribute to this issue?
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: landscape-client 16.03-0ubuntu2.
ProcVersionSign
Uname: Linux 4.4.0-72-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Mon Apr 24 14:42:37 2017
InstallationDate: Installed on 2017-04-02 (21 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: landscape-client
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2017-04-02 (21 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
Package: landscape-client 16.03-0ubuntu2.
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: third-party-
Uname: Linux 4.4.0-72-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
Related branches
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 58 lines (+36/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mem-usage-1685885.patch (+28/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 60 lines (+38/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mem-usage-1685885.patch (+30/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 60 lines (+38/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mem-usage-1685885.patch (+30/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 60 lines (+38/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/mem-usage-1685885.patch (+30/-0)
debian/patches/series (+1/-0)
Changed in landscape-client: | |
status: | New → Confirmed |
Changed in landscape-client: | |
importance: | Undecided → High |
Changed in landscape-client: | |
assignee: | nobody → Simon Poirier (simpoir) |
status: | Confirmed → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client (Ubuntu Cosmic): | |
assignee: | nobody → Simon Poirier (simpoir) |
Changed in landscape-client (Ubuntu Bionic): | |
assignee: | nobody → Simon Poirier (simpoir) |
Changed in landscape-client (Ubuntu Xenial): | |
assignee: | nobody → Simon Poirier (simpoir) |
Changed in landscape-client (Ubuntu Trusty): | |
assignee: | nobody → Simon Poirier (simpoir) |
importance: | Undecided → Medium |
Changed in landscape-client (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in landscape-client (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in landscape-client (Ubuntu Cosmic): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in landscape-client (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in landscape-client (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in landscape-client (Ubuntu Trusty): | |
status: | New → In Progress |
Changed in landscape-client (Ubuntu): | |
assignee: | nobody → Simon Poirier (simpoir) |
status: | Confirmed → In Progress |
Changed in landscape-client (Ubuntu Trusty): | |
importance: | Medium → High |
Changed in landscape-client (Ubuntu Xenial): | |
importance: | Medium → High |
Changed in landscape-client (Ubuntu Bionic): | |
importance: | Medium → High |
Changed in landscape-client (Ubuntu Cosmic): | |
importance: | Medium → High |
no longer affects: | landscape-client (Ubuntu Trusty) |
description: | updated |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
apport information