Connection on the server are not getting disconnected.
I could see one user connected many times on the server.
I have installed mod_ctlextra module.
This is the command which shows live connection : ./ejabberdctl connected-users
I tried to use this option "killsession user server resource", but it kills the current session only, does not kill the old session on the server.
Please suggest, I believe if this continues, server will be bogged down due to multiple connections.
Jabber allows multiple sessions
In Jabber, a user can connect several times to his account if he provides different resources. So, an account can have several sessions simultaneously.
If you want to limit the number of sessions a user can have with his account, you could use the option max_user_sessions in ejabberd 2.0.0 and newer.
I am using ejabber 1.1.4
No, we are using only one client – Pandion. When user logs out sometimes connection is not closed. When he logs in back a new connection is opened.
I am worried because everyday the number of connections per user are increasing.
I am using ejabber 1.1.4
What do yo suggest how can I remove the unwanted connection. If use the kill command it kills only the current session not the old connections.
Maybe the option max_user_sessions in ejabberd 2.0.0
I installed ejabberd 1.1.4 in Linux, and Pandion in Windows. I logged in and out several times, and the session was always closed. So the problem you describe doesn't seem easy to reproduce.
Maybe your are interested in this option, which was included in ejabberd 2.0.0:
How to decline new connections?
How to do follow: don't disconnect early opened sessions but deny access for new sessions if the old sessions are fine?
It is not implemented. Check
It is not implemented.
Check the related feature request ticket:Option to disallow new session if resource conflict
How to deny new sessions without killing old sessions
How to do follow: don't disconnect early opened sessions but deny access for new sessions if the old sessions are fine?
We use our layer4 switch to do this.