Project

General

Profile

How to increase connection num for jetty http-api ?

Xuan Zhou
Added over 3 years ago

How to increase connection num for jetty http-api, when i test 1000 threads per second by jmeter.

java.net.ConnectException: Connection timed out: connect


Replies (4)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 3 years ago

Why do you need more connections for the Tigase HTTP API? Note, the HTTP API in Tigase is really designed for administration tasks not for a high traffic communication with a high number of connections.

Added by Xuan Zhou over 3 years ago

OK! And then, how to use tigase in my web server application for pushing message? use jaxmpp ?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 3 years ago

I would suggest to connect to the Tigase XMPP Server over XMPP (JaXMPP would be a good choice) as an admin and then run admin ad-hoc commands to push messages. This would be much almost the most efficient way.

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 3 years ago

What I meant is, you open long-lasting admin connection to the Tigase server and execute multiple ad-hoc commands on this single connection.

    (1-4/4)