Andrzej Wójcik's blog

Optimisation of BOSH for high throughput

Submitted by andrzej.wojcik on Thu, 2012-12-13 23:06

Tigase XMPP Server by default was sending only one XMPP packet per HTTP request which caused a need for a lot of requests if there was a lot of packets to be sent to client. This caused additional network traffic as well as delay in sending packets to client.

From now on Tigase XMPP Server will detect when a lot of XMPP packets needs to be sent through single BOSH connection and it will send it batches.

Encryption and Tigase running on new JDK

Submitted by andrzej.wojcik on Sat, 2012-05-12 18:35

During a setup of a test environment on the Tigase XMPP Server runing on JDK7 a client could not connect to the server using TLS/SSL encryption.

After investigation I discovered that the JDK7 supports TLS 1.1 and TLS 1.2, a client was using a recent version of the OpenSSL library (version 1.0.1 from Ubuntu 12.04). Knowing that I tried to connect using a command line utility from OpenSSL to connect to a secured port on the Tigase XMPP Server:


openssl s_client -debug -showcerts -connect xmpp.server.com:5223

- another connection failure. After testing connection using a command line ultility from GnuTLS (which was successful), I knew that there was an issue with the recent version of OpenSSL library.

Apparently even that OpenSSL can be convinced to work with proper parameters:


openssl s_client -debug -showcerts -ssl3 -connect xmpp.server.com:5223

Tigase Command Line Management Tool announcement

TCLMT is new utility to manage XMPP servers by execution of ad-hoc commands. It's designed to be simple and powerful in use and work in two modes:

  • non interactive
  • interactive

Currently it partially supports ad-hoc commands which are specified in XEP-0133 Service Administration and implemented by Tigase XMPP Server. As for it contains support for:

  • 4.1. Add user
  • 4.2. Delete user