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

update_maker_order memory leak fix #1068

Merged
merged 4 commits into from
Sep 22, 2021
Merged

Conversation

shamardy
Copy link
Collaborator

fixes #941 (comment)
@Milerius if this doesn't fix the memory leak then you can lower TRIE_ORDER_HISTORY_TIMEOUT https://github.com/KomodoPlatform/atomicDEX-API/blob/3402e6defc08092d3bf602da71bae81d37984d29/mm2src/lp_ordermatch.rs#L107 to less than 30 seconds maybe 15 or something to test if it's from insert_new_diff https://github.com/KomodoPlatform/atomicDEX-API/blob/3402e6defc08092d3bf602da71bae81d37984d29/mm2src/lp_ordermatch.rs#L2215
as it can be the other reason for the memory leak.

@Milerius
Copy link

Milerius commented Sep 17, 2021

I started the lp node for 4 hours with four update orders - no memory leak so far.

Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I have few questions.

mm2src/lp_ordermatch/my_orders_storage.rs Outdated Show resolved Hide resolved
mm2src/lp_ordermatch.rs Show resolved Hide resolved
mm2src/lp_ordermatch/my_orders_storage.rs Show resolved Hide resolved
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@artemii235 artemii235 merged commit c663e97 into dev Sep 22, 2021
@artemii235 artemii235 deleted the update_maker_order_mem_leak_fix branch September 22, 2021 12:50
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.

3 participants