This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Fix memory leak (24GB per second) when rodeos starts with --filter-wa… #10519
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…sm and is not connected to nodeos
Change Description
When
rodeos
'ship_client
fails to connect tonodeos
(like whennodeos
is not running),.ship_client
callscloner_session
'sclose
() withretry
set totrue
. This triggerscloner_plugin
to recreatecloner_session
every second until a connection is established.cloner_session
createsrodeos_filter
object ifrodeos
starts with--filter-wasm
option. Although destructor ofrodeos_filter
is called before recreation, its memory is not completely freed. The root cause is thefilter_state
inrodeos_filter
has a membereosio::vm::wasm_allocator wa
.wa
allocates VM memory when initiated. This memory must be released by explicitfree()
.The same problem in
thread_state
is fixed by this PR as well.Change Type
Select ONE:
Testing Changes
Select ANY that apply:
Consensus Changes
API Changes
Documentation Additions