I had done as u said.
but there are still many non_established tcp connections in our system,

For which user you have applied this changes?

flame fire wrote:

I had update tigase to 7.1.2 ,and our OS is centos 7.3.1611
As attach file,i use "lsof" with tigase PID,
and tigase establishes so many tcp connections until it crashs.

It looks like the settings from the guide are not applied correctly. You are also running tigase as root user which is not recommended and can cause issues when you configure the limits for different user - which is what most likely happens in this case.

had you meet this situation?
what can i do for this?

Please share full details:

Tigase configuration;

Used Java version and flavour (i.e. OpenJDK or OracleJDK);

output of following command run from root account and dedicated Tigase account: ulimit -a

I had done as u said.
but there are still many non_established tcp connections in our system,

For which user you have applied this changes?

flame fire wrote:

I had update tigase to 7.1.2 ,and our OS is centos 7.3.1611
As attach file,i use "lsof" with tigase PID,
and tigase establishes so many tcp connections until it crashs.

It looks like the settings from the guide are not applied correctly. You are also running tigase as root user which is not recommended and can cause issues when you configure the limits for different user - which is what most likely happens in this case.

had you meet this situation?
what can i do for this?

Please share full details:

Tigase configuration;

Used Java version and flavour (i.e. OpenJDK or OracleJDK);

output of following command run from root account and dedicated Tigase account: ulimit -a

And the sole Tigase process uses more than two dozens thousands (third of the limit). Do you have other processes running on that machine? Please check the count of already opened files for that user at that machine…

And the sole Tigase process uses more than two dozens thousands (third of the limit). Do you have other processes running on that machine? Please check the count of already opened files for that user at that machine…

I would highly recommend using dedicated user account for running Tigase.

flame fire wrote:

there are only 310 registered users in tigase.

Actually in terms of established xmpp-connections there were only 4.
I've noticed that you also have some custom code ( +resource_manager,+token_manager,-msgoffline,msgoffline_manager,+session_manager ) - could you expound on them?

3."Please check the count of already opened files for that user at that machine"
could u show me the cmd ?

I would highly recommend using dedicated user account for running Tigase.

flame fire wrote:

there are only 310 registered users in tigase.

Actually in terms of established xmpp-connections there were only 4.
I've noticed that you also have some custom code ( +resource_manager,+token_manager,-msgoffline,msgoffline_manager,+session_manager ) - could you expound on them?

3."Please check the count of already opened files for that user at that machine"
could u show me the cmd ?

in this codes ,plugin will send http request to our other system to get the token string and reply it to client,this maybe spend 1~3ms.

c.session_manager plugin

this plugin had removed.so we can ignore it.

d.msgoffline_manager plugin is similar to msgoffline plugin,except that i add some codes after store offline messages into db , which will copy offline messages and send them to our other system with http request.the codes maybe also spend 1~3ms .