Project

General

Profile

Tigase server takes too much time for processing messages.

raj vasani
Added about 4 years ago

When i am sending message between swift.im (XEP-0198 enable) and another android client (XEP-0198 enable).

Tigase Version : 7.1.0

Server throwing this exception :

tigase.xmpp.NotAuthorizedException: Session has not been yet authorised.
    at tigase.xmpp.XMPPResourceConnection.isUserId(XMPPResourceConnection.java:833)
    at tigase.pubsub.PepPlugin.processIq(PepPlugin.java:184)
    at tigase.pubsub.PepPlugin.process(PepPlugin.java:110)
    at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2441)
    at tigase.util.WorkerThread.run(WorkerThread.java:128)
2015-04-10 12:42:16.226 [pep Queue Worker 0]  SessionManager$ProcessorWorkerThread.process()  WARNING: Exception during packet processing: from=c2s@i23/192.168.1.23_5222_192.168.2.8_40284, to=sess-man@i23, DATA=<iq to="muc.192.168.1.23" id="nia2ssbmve" xmlns="jabber:client" type="result"><query xmlns="http://jabber.org/protocol/disco#info"><identity category="client" type="phone" name="Conversations 0.7"/><feature var="http://jabber.org/protocol/caps"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/muc"/><feature var="jabber:x:conference"/><feature var="urn:xmpp:avatar:metadata+notify"/><feature var="urn:xmpp:chat-markers:0"/><feature var="urn:xmpp:jingle:1"/><feature var="urn:xmpp:jingle:apps:file-transfer:3"/><feature var="urn:xmpp:jingle:transports:ibb:1"/><feature var="urn:xmpp:jingle:transports:s5b:1"/><feature var="urn:xmpp:receipts"/></query></iq>, SIZE=703, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result




2015-04-10 13:14:49.759 [in_14-sess-man]   SessionManager.processCommand()    SEVERE:   exception while replacing old connection id = c2s@i23/192.168.1.23_5222_192.168.2.8_33598 with new connection id = c2s@i23/192.168.1.23_5222_192.168.2.8_48501
tigase.xmpp.NotAuthorizedException: Session has not been yet authorised.
    at tigase.xmpp.XMPPResourceConnection.getBareJID(XMPPResourceConnection.java:516)
    at tigase.server.xmppsession.SessionManager.processCommand(SessionManager.java:1613)
    at tigase.server.xmppsession.SessionManager.processPacket(SessionManager.java:500)
    at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1424)


Replies (5)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

raj vasani wrote:

When i am sending message between swift.im (XEP-0198 enable) and another android client (XEP-0198 enable).

Can you elaborate on the 'takes to much time'? Can you check the server statistics and verify average processing time of the packets (both for components as well as for plugins)?

Added by raj vasani about 4 years ago

hi Wojciech Kapcia,

It is taking 2 to 3 minutes for delivering message from source to target.

Both are android clients with stream management enable.I had verified that both users are online.

yes we are not getting message instantly.

Added by Wojciech Kapcia TigaseTeam about 4 years ago

You need to check server logs (i.e. @logs/tigase.log.*@) and trace the message. Single stanza is not enough to figure out why there's delay.

Added by raj vasani about 4 years ago

Please find log attachment.

When i am sending messages server throws exception.

Added by Wojciech Kapcia TigaseTeam about 4 years ago

As the logs/exception suggests - you seem to try to send messages over connection that hasn't been yet authorized.

tigase.xmpp.NotAuthorizedException: Session has not been yet authorised.

    (1-5/5)