Could you tell me the settings of Openfire

Yes I can. Now the 4.4.0 version is used and sometimes Spark clients become offline.

I saw in the next topic (Session disconnecting)
What you need to change the parameter stream.management.active
But I do not understand what he is responsible for.