Skip to content

After unloading wallet its getting released from memory for dynamic loading & unloading wallet using RPC #592

@adneerav

Description

@adneerav

Hello ,

I have built daemon,cli from multiwallet branch(0.17).Tried to load and unload multiwallet using RPC(dynamically) from the response it seems its unloaded as per API response.

And due to exceeding ram usage daemon is getting crashed.

Above findings i found by following below cases.

Using loadwallet api wallets are loading and I can make api request to that wallet.After loading multiple wallet dynamically using REST api i check memory usage.

After that I've unloaded wallet using unloadwallet REST api and observed the memory usage which should be lesser compare to at the time of wallets are loaded.But it showing same percentage or same mb/kb usage in both case(loadwallet & after unloading wallet)

So by unloading wallet i guess wallets objects are not getting released from the memory.And its increasing the memory usage and daemon getting crashed.

Similar issue(15526) was reported on Bitcoin too.And tried to make changes from bitcoin to litecoin source but faced same issue might be missing something.

Can anyone please provide input or help me to resolve this issue ?
Thanks,

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