Skip to content

2x or more memory usage increace with lnd 0.7.0 #3273

@Talkless

Description

@Talkless

Background

After building lnd 0.7 (compiled with golang 1.12.6) and starting up (upgrading from 0.6.x, which was built with golang 1.12.4), I've noticed huge (~2x) memory usage increase - up to ~600MB compared to ~300MB that was enough before:
lnd-memory-usage

At the moment of writing, Munin fails to render new graphs as lnd now uses ~1GB (50%) of ram on ARM SBC:

lnd-memory-htop

I believe latest memory increase to ~1GB (from ~600MB) appeared after payinvoice.

Your environment

  • version of lnd 0.7.0-beta commit=v0.7.0-beta
  • which operating system (uname -a on *Nix) Linux odroid-hc1 4.9.0-9-armmp-lpae #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) armv7l GNU/Linux
  • version of btcd, bitcoind, or other backend /Satoshi:0.18.0/

Steps to reproduce

Just launched newly built 0.7, not sure what else is needed.

Expected behaviour

~2-3x memory usage increase is not expected.

Actual behaviour

Uses 2-3x more memory than previous versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions