<p></p>
<p>I tested with dao syncs and there memory goes up quite a lot. To avoid that gc is called too often (takes about 300 ms) I have set the totalMemory trigger to 3gb. This value is used at all the manual calls at areas where memory spikes are expected. Beside that there is a 10 min interval to check if totalMemory is > 1gb and invokes the gc if memory is high.<br>
With that more conservative approach memory will likely stay around 1 gb, but it avoids that gc gets called too often and as peak memory goes up to about 3gb a 1 gb level at usual operation should be ok.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/5609#issuecomment-875994678">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTT7KODKNO5PLAEJNLTWTNWXANCNFSM475F7XPA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNRXRGSUG7BBQYIRAD3TWTNWXA5CNFSM475F7XPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGQ3J4NQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/5609#issuecomment-875994678",
"url": "https://github.com/bisq-network/bisq/pull/5609#issuecomment-875994678",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>