<p>I just tried attaching to Bisq in VisualVM just for fun. <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=869094" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thorie7912">@thorie7912</a> here's how I did it:</p>
<ul>
<li>Start VisualVM and Bisq</li>
<li>Select <em>Local</em>/<em>bisq.desktop.app.BisqAppMain</em> in VisualVM</li>
<li>Switch to the Profiler tab</li>
<li>Replace the <em>Profile classes</em> list on the right with <code>bisq.core.**</code></li>
<li>Add <code>,com.google.**, org.spongycastle.**</code> to the <em>Exclude outgoing calls</em> list below</li>
<li>Click the <em>Profile: CPU</em> button and let it run for a few minutes</li>
<li>Click the <em>Collected data: Snapshot</em> button and then right click -> <em>Save As...</em> the snapshot in the list on the left to export it</li>
</ul>
<p>I attached the CPU profiler right after starting Bisq, before I entered the wallet password. After a while I switched to the BSQ wallet transactions list where the app eventually became completely unresponsive while using 100% CPU. I stopped the profiling then, but the app was still unresponsive. Then I decided to profile another minute of this hanging state.<br>
Here are the saved snapshots: <a href="https://github.com/bisq-network/bisq/files/3331664/bisq-cpu-profiling-snapshots-a123b.zip">bisq-cpu-profiling-snapshots-a123b.zip</a></p>
<p>Some observations:</p>
<ul>
<li>Almost all of the time is spent in <code>DaoStateService.getTx(String)</code>.</li>
<li>On startup, most of the <code>getTx</code> calls seem to come from <code>BondRepository.update()</code>, which was called 288 times in my case. I don't think this has anything to do with the issue, but it seems pretty inefficient.</li>
<li>When the app starts to hang in the BSQ transaction list, it seems to call <code>BsqWalletService.getValueSentToMeForTransaction(Transaction)</code>, <code>BsqWalletService.getValueSentFromMeForTransaction(Transaction)</code> and <code>DaoFacade.hasTxBurntFee(String)</code> in an endless loop. Looking at the code, this seems to be in the constructor of <code>BsqTxListItem</code>. So the question would be why did the app get stuck creating <code>BsqTxListItem</code>s in an endless loop?</li>
</ul>

<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/2856?email_source=notifications&email_token=AJFFTNUYI4FITEAO4NWWK4TP4PDXPA5CNFSM4HRFVNW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUVFVA#issuecomment-506024660">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUFUZ5JNZMYWR56ENTP4PDXPANCNFSM4HRFVNWQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNWPCIBVMBDA7STSJUDP4PDXPA5CNFSM4HRFVNW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUVFVA.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/2856?email_source=notifications\u0026email_token=AJFFTNUYI4FITEAO4NWWK4TP4PDXPA5CNFSM4HRFVNW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUVFVA#issuecomment-506024660",
"url": "https://github.com/bisq-network/bisq/issues/2856?email_source=notifications\u0026email_token=AJFFTNUYI4FITEAO4NWWK4TP4PDXPA5CNFSM4HRFVNW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYUVFVA#issuecomment-506024660",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>