<p></p>
<p>This problem may be related to one that was blocking work on atomic-tx, and fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="900671866" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5528" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/5528/hovercard" href="https://github.com/bisq-network/bisq/pull/5528">#5528</a> (but not in v1.6.5).<br>
Raising the MAXRam limit might not solve this.</p>
<p>The problem may be in <a href="https://github.com/bisq-network/bisq/blob/release/v1.6.5/core/src/main/java/bisq/core/provider/fee/FeeService.java">https://github.com/bisq-network/bisq/blob/release/v1.6.5/core/src/main/java/bisq/core/provider/fee/FeeService.java</a> LINES 140-144</p>
<pre><code>public void requestFees(@Nullable Runnable resultHandler, @Nullable FaultHandler faultHandler) {
        if (feeProvider.getHttpClient().hasPendingRequest()) {
                log.warn("We have a pending request open. We ignore that request. httpClient {}", feeProvider.getHttpClient());
                                       // Should be: "... We ignore this new request ..."
                return;
        }
        ...
}       
</code></pre>
<p>New fee requests are ignored and some pending request callbacks never complete;  this may be why shutdown is hanging.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/sqrrm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sqrrm">@sqrrm</a>'s PR may solve this problem too.  It adds a new callback for each new request if there is already pending request, rather than just ignoring the new request and returning.  Then, on success or failure of any callback, all other pending callbacks' respective resultHandlers or faultHandlers are run.  This unwinding of callbacks' handlers might prevent hanging shutdown, but not sure about the OOME.  <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/sqrrm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sqrrm">@sqrrm</a>, is this an incorrect interpretation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="900671866" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5528" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/5528/hovercard" href="https://github.com/bisq-network/bisq/pull/5528">#5528</a>?</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/5561#issuecomment-858716480">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNWAJNIGBZBBN6E7EETTSDKHJANCNFSM46NIMBGQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSAY2ACIO26GZDVWMTTSDKHJA5CNFSM46NIMBG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMXPSQA.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/5561#issuecomment-858716480",
"url": "https://github.com/bisq-network/bisq/issues/5561#issuecomment-858716480",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>