Tigase XMPP Server Board

API and development: RE: How to Store and Retrieve message statuses

Wed, 11/16/2016 - 07:36

Mauricio Giacomello wrote:

We know that this is doable with 'Message Delivery Receipts', however, only if both users are online and that this is information is not persisted; as far as we know.

Tigase Message Archiving component allows to define custom paths so you can store any defined stanza, hence it will be persisted, see Saving Options

Categories: Tigase Forums

API and development: RE: How to monitor rooms(chats) count in JMX?

Wed, 11/16/2016 - 07:26

Taras Panchak wrote:

Hi!
Tigase JMX MBean tigase.stats:type=StatisticsProvider (tigase.stats.StatisticsProvider) has attribute
ComponentsNames = [vhost-man, basic-conf, message-router, amp, bosh, c2s ...]

This is based on the enabled components - if you enable it then it will be included in the list.

How to monitor rooms(chats) count (which attribute contains info about it)?

Currently MUC component doesn't expose such statistics (yet). There is an issue for it: #620 but it has rather low priority.

Categories: Tigase Forums

Installation and maintenance: RE: How about the MUC clear the state of broken connection?

Wed, 11/16/2016 - 07:23

Yes, upon Tigase discovering broken connection, SessionManager informs MUC component about it (so for example in single user connection such user will 'leave' the room).

Categories: Tigase Forums

Installation and maintenance: RE: Cannot connect to Tigase Admin panel?

Sun, 11/13/2016 - 05:50

My problem solved when I said the network admin to open 5290 and 5280 ports over public IP, I didn't use any of those bosh URLs and I don't know what actually they are. Do we have a list of required ports for a Tigase server.

Thanks a million.

Categories: Tigase Forums

Installation and maintenance: RE: Cannot connect to Tigase Admin panel?

Sun, 11/13/2016 - 04:42

Thanks for your answer, absolutely I can access and see admin's login page, also I use bare JID for username like what you mentioned. The thing is, I didn't know what is really bosh textbox is and I am going to test that. Again Thanks.

Categories: Tigase Forums

Installation and maintenance: RE: Cannot connect to Tigase Admin panel?

Sun, 11/13/2016 - 04:15

Is domain chat.example.com resolved by DNS to your server running Tigase XMPP Server? I suppose it is not.
In this case please expand Advanced section on login page and pass BOSH URL, it should work with ws://localhost:5290/ and with bosh://localhost:5280/ in your case.
Also make sure you put while JID as a XMPP ID, not just localpart of a JID. (use admin@chat.example.com as XMPP ID).

Categories: Tigase Forums

Installation and maintenance: Cannot connect to Tigase Admin panel?

Sun, 11/13/2016 - 04:08

Server parameters that I have set are:

Jabber domain name: chat.example.com >> this is public DNS
Administrator:
Admin Password: tigase

After installation, I can get access to admin panel by URL: http://localhost:8080/ui/ , but unfortunately I can't login with username and password that I have created during installation process. This makes me really crazy, please help.

Point is that, I can login to the server with android client with above username and pass, also when I delete and reinstall tigase and set the domain to ip address of computer in internal network it's working, but when I use DNS I everything looks good but cannot login to admin environment with username and password.

Categories: Tigase Forums

API and development: RE: Messages for domain are always delivered to admins

Fri, 11/11/2016 - 10:13

No worries, I succeeded in converting it to a component finally :)
Thanks!

Categories: Tigase Forums

API and development: How to Store and Retrieve message statuses

Thu, 11/10/2016 - 13:56

Hi Tigase team,

Here at work we're under development of a chat solution based on XMPP and we decided to go with Tigase for our backend, together with the Message Archive Plugin and Message Delivery Receipts.

We're wondering how we could solve the problem where two users want to retrieve the status of the messages (sent or delivered) once they log off and log back in.

We know that this is doable with 'Message Delivery Receipts', however, only if both users are online and that this is information is not persisted; as far as we know.

Thanks in advance,

Mauricio Giacomello
Sr. QA | Orion Health
Auckland | New Zealand

Categories: Tigase Forums

API and development: How to add my component for JMX-monitoring?

Thu, 11/10/2016 - 09:24

Hi!
Tigase JMX MBean tigase.stats:type=StatisticsProvider (tigase.stats.StatisticsProvider) has attribute
ComponentsNames = [vhost-man, basic-conf, message-router, amp, bosh, c2s ...]

Few questions related to it:
1)Is it possible to add my custom component for monitoring?
2)How to do that?
3)How to monitor rooms(chats) count (which attribute contains info about it)?

Categories: Tigase Forums

Installation and maintenance: How about the MUC clear the state of broken connection?

Thu, 11/10/2016 - 05:04

First, a client with nickname 'Michael' join in a room.
Then the client 2 server connection was broken because the wifi broke, the connection would be clear by session manager of Tigase server.
But will the muc module clear the state of 'Michael' which the broken connection?

If now Michael join the same room again at once, will the room have the correct state of Michael?

Categories: Tigase Forums

Installation and maintenance: RE: Limitation of user logins per second.

Wed, 11/09/2016 - 15:07
There can be many reasons for poor performance like this. Here are some ideas i suggest you to check first:
  1. Make sure debug logs are off, in fact log level should be set to minimum - WARNING. Otherwise the server slows down due to high IO caused by heavy logging
  2. 240 logins per second mean something about 1,000 queries to the database. Make sure the DB can handle this. Now do you measure load on the MySQL Server? CPU can be still low but the response time may be slow due to high IO disk or network.
  3. Most commonly during our load tests we actually experience performance problems on the load simulation software or machine. Maybe the Tigase server performs OK but you simply cannot generate more load?
  4. Another possibility can be of course network bottleneck, do you have a router, firewall or some sort of proxy between your load generator and Tigase?
  5. Of course there is possibility of misconfigured Tigase server but for this we would need to look at the Tigase statistics at least
Categories: Tigase Forums

Installation and maintenance: Limitation of user logins per second.

Wed, 11/09/2016 - 06:42

Hi Guys
I’ve got stuck with the user login throttling on tigase server
Actually, I can’t get more than 240 user logins into chat on port 5222 per second.
I already have in etc/init.properties
--cm-traffic-throttling = xmpp:0:0:disc,bin:0:0:disc --cm-ht-traffic-throttling = xmpp:0:0:disc,bin:0:0:disc --new-connections-throttling = 5222:1500,5223:1500,5269:1500,5280:1500 --sm-threads-pool = custom:200 c2s/watchdog_delay[L]=10000 c2s/watchdog_timeout[L]=1000 c2s/watchdog_ping_type[S]=WHITESPACE ws2s/net-buffer-limit[I]=4194304 c2s/net-buffer-limit[I]=4194304 bosh/net-buffer-limit[I]=4194304 s2s/net-buffer-limit[I]=4194304 c2s/max-inactivity-time[L]=10 c2s/max-queue-size[I]=635140

But this does not help, I still can’t get more than 240 new logins per second.
Tigase is running on a 8 core machine and load averages are around 1.5 so CPU is not a bottleneck. Also no high load observed on mysql server.
I have generated 1M users in database before the testing and try to login them concurrently in 1000 threads from single ip.
Guys, could you please help me to figure out where the bottleneck is.
I appreciate any help. Thanks in advance

Categories: Tigase Forums

API and development: RE: Messages for domain are always delivered to admins

Tue, 11/08/2016 - 02:16

Thanks for your reply!

I would say you could modify from void processPacket(final Packet packet) and add same check for packet.wasProcessed() in the condition.

I'm not following, sorry. Are you talking about a plugin or a component?

Categories: Tigase Forums

API and development: RE: SSLException: bad record MAC

Thu, 11/03/2016 - 05:34

he li wrote:

The connection is stable and reliable.

I assume both servers are Tigase servers?

Where are those servers located (same or different locations)?
Are there other instances connecting to the mentioned server (and experiencing or not similar problems)?
Is there any Fw between those servers?

Please provide exact version of Java you are using.
Please try OpenJDK version.

Categories: Tigase Forums

API and development: RE: Handling client disconnecting in component

Thu, 11/03/2016 - 05:26

It's generated in tigase.muc.modules.PresenceModuleImpl:285 - so when the event is generated all registered handlers for particular event Name and XMLNS (as in your case) will get executed.

Categories: Tigase Forums

API and development: RE: Messages for domain are always delivered to admins

Thu, 11/03/2016 - 05:23

You are right - it would be better to implement it as component with distinct addressing - I would say you could modify from void processPacket(final Packet packet) and add same check for packet.wasProcessed() in the condition.

Categories: Tigase Forums

API and development: RE: SSLException: bad record MAC

Wed, 11/02/2016 - 22:14

No,I have not. The connection is stable and reliable.

Categories: Tigase Forums

API and development: RE: Handling client disconnecting in component

Wed, 11/02/2016 - 08:09

Thanks Wojciech for your reply.
Please explain how works this one handler - because it realy works in my component:

eventBus.addHandler("RoomJoin", "tigase:events:muc", (name, xmlns, event) -> {
String room = event.getCDataStaticStr(new String[]{"RoomJoin", "room"});
String nickname = event.getCDataStaticStr(new String[]{"RoomJoin", "nickname"});
String jid = event.getCDataStaticStr(new String[]{"RoomJoin", "jid"});
// Do something after room joining... - This works fine.
});

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

Back to Top