Skip to content

Possible memory leak with commits after v0.2.2 #386

@txhsl

Description

@txhsl

System information

Geth version: 0.3.0-unstable
OS & Version: Linux
Commit hash : a0e8c9c

Expected behaviour

The node memory usage is quite stable and low with v0.2.2.

Actual behaviour

But when we are using the latest commit code to upgrade an existing network, @songb2 confirmed a significant memory usage pump.

bd613d507327b8b9f97f456a95ee5b8

The above graph tracks the memory usage of one of our servers, it runs 3 CNs as a part of our privnet.

We stopped the network and started to try to upgrade it from Jan 8th 15:00, and finally started it up in Jan 10th 18:00.

So regardless of the middle, we can see an obvious increase, and finally the server crashed.

Steps to reproduce the behaviour

Set up a privnet with make privnet_start_seven, and keep running it, maybe more than 1 day.

Backtrace

The first graph is from a node running on a0e8c9c for half a week.
388523caf39f7ffb6fc3957743c8f52
The following two are from another node running on 93810b5 for about half a month.
77941d8db08354796cadb4acfa0637b
When only select /consensus as scope, it shows that 75% memory usage came from here.
cbead5f61d21e3d190ed55f6364bcc7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdBFTEverything related to dBFT module integrationtestRelated to node testing

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions