Runaway memory allocation in jujud unit agent

Bug #1531719 reported by Casey Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Invalid
High
Unassigned

Bug Description

I've been seeing runaway memory allocations in jujud with 1.26, but only occasionally and intermittently.

I added the heap profiler to jujud's main and configured it to write the profile on SIGUSR2. Just caught it in the act, finally. It's been tricky, because when it happens on my machine, it usually becomes really unstable (OOM killer, etc.)

$ go tool pprof jujud jujud.mprof401040987
Entering interactive mode (type "help" for commands)
(pprof) top10
3378.66MB of 3396.71MB total (99.47%)
Dropped 118 nodes (cum <= 16.98MB)
      flat flat% sum% cum cum%
 3220.73MB 94.82% 94.82% 3378.66MB 99.47% time.NewTimer
  157.93MB 4.65% 99.47% 157.93MB 4.65% time.startTimer
         0 0% 99.47% 3378.66MB 99.47% github.com/juju/juju/worker/uniter.updateStatusSignal
         0 0% 99.47% 3395.16MB 100% github.com/juju/juju/worker/uniter/remotestate.(*RemoteStateWatcher).loop
         0 0% 99.47% 3395.16MB 100% github.com/juju/juju/worker/uniter/remotestate.NewWatcher.func1
         0 0% 99.47% 3396.21MB 100% runtime.goexit
         0 0% 99.47% 3378.66MB 99.47% time.After

I'm too fried to read the uniter code now, it's pretty late. Attached the binary & prof file, in case that helps.

Revision history for this message
Casey Marshall (cmars) wrote :
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-alpha2
Changed in juju-core:
milestone: 2.0-alpha2 → 2.0-alpha3
Changed in juju-core:
milestone: 2.0-alpha3 → 2.0-beta4
tags: added: 2.0-count
Changed in juju-core:
milestone: 2.0-beta4 → 2.1.0
Revision history for this message
Casey Marshall (cmars) wrote :

FWIW I haven't seen this happen in a really long time. I think we can close/mark invalid unless it surfaces again.

Changed in juju-core:
status: Triaged → Incomplete
milestone: 2.1.0 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju-core because there has been no activity for 60 days.]

Changed in juju-core:
status: Incomplete → Expired
tags: added: sts-needs-review
Tim Penhey (thumper)
Changed in juju-core:
status: Expired → Triaged
milestone: none → 2.0-rc1
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Jorge
This bug was expired before you tagged it.
Have you seen this behavior more recently?
Do you have a reproducible scenario?
Logs?

Changed in juju-core:
status: Triaged → Incomplete
milestone: 2.0-rc1 → 2.0.0
Revision history for this message
Casey Marshall (cmars) wrote :

I haven't experienced this issue in a looong time, and when I did, it was in a really early 1.26/2.0 beta. I think it's Expired/Invalid without some kind of recent confirmation.

Changed in juju-core:
milestone: 2.0.0 → none
affects: juju-core → juju
Changed in juju:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.