Client connections

Hello,

We are running Openfire version 3.9.1 on our production server and I have a question regarding the client connections. Environment details are mentioned below.

-> Environment:

Openfire version 3.9.1

Ubuntu 12.04 Operating System

java version “1.6.0_30”

OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)

OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

I see a discrepancy in the number of TCP ESTABLISHED sessions for XMPP ports and the number of client connections as reported by Openfire admin console. As of this time, admin console reports 1391 client sessions (statistics->current users as well as client sessions). But number of TCP ESTABLISHED sessions from clients is more than double this number.

netstat -ntp | grep -E ‘(5222|5223)’ | awk ‘{print $6}’ | sort | uniq -c | sort -rn

3511 ESTABLISHED

lsof | awk ‘{print $3}’ | sort | uniq -c | grep openfire

3798 openfire

ps -aefL | grep openfire | grep -vc grep

177

Is there a way to find out the following:

  1. What could be state of the sessions which are not reported as a client sessions as per Openfire (3511 - 1391)?

  2. How to could cause this?

Thanks in advance for any inputs.

Satish

I’m more or less having the same problem.

netstat -ntp | grep -E ‘(5222|5223)’ | awk ‘{print $6}’ | sort | uniq -c | sort -rn

12276 ESTABLISHED

lsof | awk ‘{print $3}’ |sort|uniq -c|grep daemon

12510 daemon

ps -aefL |grep openfire |grep -vc grep

89

According to the OpenFire console, there are currently 592 connected sessions.