<p></p>
<p>To sum up, I agree the biggest problem on Linux is off-heap memory growth.  Your adding the MaxRAM jvm option reduced resident memory > 50%</p>
<p>The next experiment should be adding</p>
<pre><code>export MALLOC_ARENA_MAX=4
export MALLOC_MMAP_THRESHOLD_=131072
</code></pre>
<p>to the bisq-desktop and bisq-daemon startup scripts;  <em>this requires no changes to the binaries</em>.<br>
If testers don't see any performance drag from this after using this setting for X days, they might try to save another ~100 or so MB RAM by setting the jvm's start & max heap size:</p>
<pre><code>-Xms820m  -Xmx820m
</code></pre>
<p>820 MB should be sufficient, and I think Linux bisq users would be happy to see a ~ 1.0 GB resident memory size after starting bisq with an empty data dir.  (When we started investigating, bisq's resident memory size was growing to ~ 4.8 GB.  So problem not solved, but this is a significant improvement.)</p>
<p>Regarding the Java Heap:  I certain JavaFX 11 has leaks, and their dev team has been fixing them in a version we cannot use yet. Can't do much about that yet.  There are probably other on-heap leaks, but I have not been able to identify with certainty.</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/issues/3918#issuecomment-607198677">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNURZ7YG7F4E3DKOAQTRKMR4BANCNFSM4KMC7HZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNVFVBGT7FNFMDEDGHTRKMR4BA5CNFSM4KMC7HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQYR3VI.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/issues/3918#issuecomment-607198677",
"url": "https://github.com/bisq-network/bisq/issues/3918#issuecomment-607198677",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>