Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

istanbul/core: fixed potential memory leak in backlogs #521

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

trung
Copy link
Contributor

@trung trung commented Sep 11, 2018

backlogs is the map with keys which are pointers to Validator. In a scenario when node re-initializes the validator set, new set of pointers are instantiated causing new entry being added into backlogs when subsequent storeBacklogs() is called.

@fixanoid
Copy link
Contributor

Fixes #481

@jpmsam jpmsam merged commit a34b725 into Consensys:master Sep 18, 2018
@marcosio
Copy link

Hi guys, we are introducing this fix in our nodes and:

  1. With 3 nodes, 1 validator: The fix works fine, the validator node has the minimum amount of memory, and if we stress the network with a lot of transactions, it is resilient.

  2. With 48 nodes, 7 validators: We set 2 nodes with the modifications. Both of them increase her amount of memory for another reason.

Any idea of another issue that can resolve this?

What can we test for identifying the origin of this memory leak?

Meanwhile, we will change our test configuration in the test environment with 2 validators and 2 regular nodes.

@trung trung deleted the f-istanbul-backlogs branch September 24, 2018 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants