8000 Sporadic big delays while dispatching some messages (both with long polling and with websockets) · Issue #463 · errai/errai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Sporadic big delays while dispatching some messages (both with long polling and with websockets) #463
Open
@larzeni

Description

@larzeni

Dear Sir,
I'm using the errai messagebus to send and receive messages for a realtime messaging application.
Our environment is JBoss 7.0.9, jdk8, errai 4.2.3

Application usually works fine, but sometimes (albeit rarely) I see long times to dispatch messages to the clients. That is, usually a message gets dispatched in few milliseconds (3-30ms), but in some rare cases it happens to wait for 100/120 seconds (in one case it reached 10 minutes!), which, for our app, is not acceptable.

I was also forced to use longPolling instead of websockets, because in this way the customer can, at least, close the browser and, on reopening, the bus starts to work again.

The problem is that, after one customer is locked in this way, many other customer are locked, and, until the message for the first user is dispatched, many users are locked. After the message to the first user is delivered, immediately all other locked customers receive their message.
Please note that NOT all users are locked, because during this delay, many other users are still working fine.

I excluded all server or client program issues, and focused on the sendGlobal message, that seems to be the method that requires a so long time to complete.

We are not able to reproduce the issue, since it seems to be connected to a rare network event, so I'm asking for advice. Is there anyone around that can give me some help on this issue?

I've also seen a longPolingTimeout and a ssTimeout, but they are set at their default values, which is 45000 ms, and they are anyway far less than the delays that we are seeing. May someone explain me how to set them and the effect of this settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0