powered by Jive Software

New Openfire plugin: ServerInfo

Sessions page shows Active Client Sessions: 923

Ok, but take a look in sessions - client sessions.

That is the number that I’m getting.

Regards,

Marcelo

Ok,

In a few days I’ll release version 0.3 that will contain debug information, so it’ll allow us to discover what is happening.

Marcelo.

Active Client Sessions: 929 thats from client sessions

ServerInfo is showing 996

Hey,

I release a minor version that should correct this problem:

http://files.mundoopensource.com.br/serverinfo_0.2.1.jar

Can you verify that now the numbers are correct?

Thanks,

Marcelo

Sorry they are still about 70 sessions different. I deleted the .2 and installed the .2.1 just to make 100% sure as well.

Do I need to restart openfire itself to this to change? If so I will need to do that overnight as we have a lot of people online right now.

Server Info: 1033

WebAdmin Session: 966

It’s odd.

Before I was using getConnectionsCount (https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/javadoc /org/jivesoftware/openfire/SessionManager.html#getConnectionsCount(boolean)):

“Returns number of client sessions that are connected to the server. Sessions that are authenticated and not authenticated will be included”

I thought the problems were the non authenticated sessions.

And now I’m using getUserSessionsCount (https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/javadoc /org/jivesoftware/openfire/SessionManager.html#getUserSessionsCount(boolean))

“Returns the number of sessions for a user that are available. For the count of all sessions for the user, including sessions that are just starting or closed.”

And here the problem should be the “just closed sessions”.

I’ll look for another approach, but I am not experiencing this problem my servers (4 until now). What’s your openfire version? Anybody else is having this issue?

Marcelo Terres.

3.9.1

With active directory and MySQL… I am also using the fastpath plugin for support chats but there isn’t 70 people on that ever.

I’m using getSessions (https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/javadoc /org/jivesoftware/openfire/SessionManager.html#getSessions) now.

"Returns a list that contains all authenticated client sessions connected to the server. The list contains

sessions of anonymous and non-anonymous users."

I think it requires more processing but should work now (I hope). :slight_smile:

http://files.mundoopensource.com.br/serverinfo_0.2.2.jar.

Marcelo Terres

Hello everybody.

I’ve got a bug report from Jason L about online users number.

I released rigth now a beta version (0.2.2) that should correct this issue.

http://files.mundoopensource.com.br/serverinfo_0.2.2.jar

Feel free to test it and please give me your feedback.

Thanks.

Regards,

Marcelo Terres

Sorry same issue with .2.2

ServerInfo 1033

Session 966

Well, so I’ll need to ask you to restart openfire at night and tell me tomorrow if the problem persists.

And if you could test all versions (0.2, 0.2.1 and 0.2.2) and tell the differences in numbers I’ll appreciate a lot.

Thanks,

Marcelo

Good Morning,

So Issue #1: If you delete the plugin from the web interface it doesn’t really go away until a full restart of openfire. So all the testing we did was all on 2.0 which shows the wrong numbers, we never did test 2.1 and 2.2 because of having to restart.

That being said after installing and trying both 2.1 and 2.2 and restarting Openfire between the two both show the proper numbers. I have left 2.1 installed and will monitor it during the day.

But at the time of this message at 2:15am

Serverinfo: online users [126]

Active Client Sessions: 126

Good morning.

First I have to thank you for your help. :slight_smile:

It is good to know that version 0.2.1 is working. I’ll take a look in restart issue and after solve it I’ll release official and stable 0.2.1 version.

Regards,

Marcelo

10am

both showing 629.

ServerInfo 0.3 was released:

http://files.mundoopensource.com.br/serverinfo.jar

This is the ChangeLog:

Version 0.2.1 (never officialy released):

  • Improve logging and debugging.
  • Fix online users number bug (thanks Jason L from Ignite Realtime Forums for report).

Version 0.3:

  • Fix remove/update bug that requires Openfire restart (thanks again to Jason L).
  • New command “version” displays plugin version.
  • New command “openfire version” displays Openfire version.
  • New command “openfire host” displays Openfire hostname.
  • New command “openfire uptime” displays Openfire last started time.
  • New command “java version” displays Java version.
  • New command “total memory” displays total available memory to the jvm.
  • New command “free memory” displays free available memory to the jvm.
  • New command “used memory” displays used memory by the jvm.
  • New command “max memory” displays maximum available memory to the jvm.
  • New command “total memory num” displays total available memory to the jvm (in MB).
  • New command “free memory num” displays free available memory to the jvm (in MB).
  • New command “used memory num” displays used memory by the jvm (in MB).
  • New command “max memory num” displays maximum available memory to the jvm (in MB).

Due the bugs in older versions, updating is recommended, but it will require openfire restart (sorry about that).

Regards,

New version was released.

Thanks for you help.

Marcelo Terres

So, as logging and debugging has been improved, how can we investigate why it is not working with 3.10.0 alpha?

Hi wroot.

I didn’t had time to implements debug completely, so I think this it’ll not be sufficient for your case.

New debugging was just to help me to solve the bugs related by Jonas L, that are related with the basic functions of script.

Off course, I release the new features too, but not the one you need right now.

I’ll let you know when it’s done. Maybe I’ll release a 0.3.1 version with complete debug.

Regards,

Marcelo Terres

ServerInfo 0.3.1 released.

Besides small code fixes, I think that I corrected the issue related by wroot.

I recommend all users to upgrade.

http://files.mundoopensource.com.br/serverinfo.jar

Regards,

Marcelo Terres