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).
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.
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