Skip to content

Memory leak? #42

Description

@jinnko

I have several systems running smokeping prober and I've observed that long running instances are taking up significantly more memory. Is this a sign of a memory leak?

As an example:

This is an instance running in an LXC container that has been up for 2 weeks.

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
21755 10002      20   0  176M 53796     0 S  0.0  2.7  2h24:10 /usr/local/bin/smokeping_prober --web.listen-address=10.255.101.2:9374 1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4

And this is an instance that was restarted 5m ago because it had similar memory usage to the one above after 2 weeks.

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
27908 smokeping  20   0  110M 12124  7284 S  0.0  0.6  0:00.98 /usr/local/bin/smokeping_prober --web.listen-address=10.255.101.1:9374 1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4

Both are the same version:

# /usr/local/bin/smokeping_prober --version
smokeping_prober, version 0.3.0 (branch: HEAD, revision: 594bd985ddfac52c473dcd4d290e9a8798406a10)
  build user:       root@100e204324f4
  build date:       20190625-13:48:41
  go version:       go1.12.6

How can I help find the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions