powered by Jive Software

org.jivesoftware.openfire.http.HttpBindServlet - Error sending packet to client

We are using Converse JS XMPP Client which is connecting to Openfire. We use BOSH to connect to Openfire.

It was working fine but then we started to receive following error:

2020.08.16 15:25:37 ERROR [Jetty-QTP-BOSH-4621]: org.jivesoftware.openfire.http.HttpBindServlet - Error sending packet to client.
org.jivesoftware.openfire.http.HttpConnectionClosedException: The http connection is no longer available to deliver content
        at org.jivesoftware.openfire.http.HttpConnection.deliverBody(HttpConnection.java:110) ~[xmppserver-4.5.1.jar:4.5.1]
        at org.jivesoftware.openfire.http.HttpSession.forwardRequest(HttpSession.java:597) ~[xmppserver-4.5.1.jar:4.5.1]
        at org.jivesoftware.openfire.http.HttpBindServlet.handleSessionRequest(HttpBindServlet.java:219) [xmppserver-4.5.1.jar:4.5.1]
        at org.jivesoftware.openfire.http.HttpBindServlet.processContent(HttpBindServlet.java:172) [xmppserver-4.5.1.jar:4.5.1]
        at org.jivesoftware.openfire.http.HttpBindServlet$ReadListenerImpl.onAllDataRead(HttpBindServlet.java:361) [xmppserver-4.5.1.jar:4.5.1]

It seems like BOSH requests was not completing successfully. We’ve run on much higher client load but the problem started to happen on reduced load. We are still not sure what caused the problem but setting following parameters seems to resolve the problem for now.

xmpp.client.processing.threads=32
xmpp.httpbind.worker.threads=256

Can any one share some insight on what can be inspected here to troubleshoot the problem? Was it running out of threads to handle the BOSH requests?

Thanks!