Too many number of guests online

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: GUEST OPTION not Good works.

Postby sozzled » Wed Feb 07, 2018 9:10 am

borut1978 wrote:After update for 3.8.5. not fixed. :(
borut1978 wrote:No, in 3.8.3 not a problem. After upgrading to 3.8.4 it is all the time.
Your story keeps changing: one moment you're complaining about J! 3.8.5 and the next you are complaining about J! 3.8.4.

Which version of Joomla are you using? ??? :pop
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Wed Feb 07, 2018 9:42 am

Using 3.8.5 without guest fixed. Joomla dead project.

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3261
Joined: Tue Aug 23, 2005 1:56 pm
Location: Kent / Sussex / Surrey border UK
Contact:

Re: Too many number of guests online

Postby gws » Wed Feb 07, 2018 10:26 am

borut1978 wrote:Using 3.8.5 without guest fixed. Joomla dead project?

Well it is fixed for most joomla users....
Saying "Joomla dead project" will encourage people to help you.

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Wed Feb 07, 2018 8:59 pm

Also read the comment from @mbabker about using the database session handler. ;)
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
mtech0101
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Oct 16, 2008 12:34 pm
Location: New England... USA
Contact:

Re: Too many number of guests online

Postby mtech0101 » Thu Feb 08, 2018 2:46 pm

I followed eSilverStrike 's suggestion and it worked! Updating to 3.8.5 by itself did not bring down the high number of visitors displaying so I followed the steps: "This means once you apply the fix you will need to delete those old expired sessions. The easiest way to do this is to switch Session Handler in the Joomla Global Configuration hit save and then switch it back if you want. You should also delete your cache as well incase you cache the module." and it worked! Thank you!

wbtcpip
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Feb 03, 2018 11:37 pm

Re: Too many number of guests online

Postby wbtcpip » Sat Feb 10, 2018 10:44 pm

borut1978 wrote:
sozzled wrote:Are you using an intermediate/proxy cache or CDN?
No, in 3.8.3 not a problem. After upgrading to 3.8.4 it is all the time.


Me too i have the same problem with joomla 3.8.5 and PHP 7.1.14

after switching Session Handler the guests online reset to 0 and increase of about 2000 every hour ... it will probably be a million in few weeks!!!

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Sat Feb 10, 2018 10:46 pm

https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

Jewelu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 14, 2018 2:22 pm

Re: Too many number of guests online

Postby Jewelu » Thu Feb 15, 2018 5:01 pm

I have the same problem since 3.8.4 and 3.8.5 does not fix it for me. When I kill all sessions so that the number of users online restarts at zero, it is growing again from day to day, endlessly. It seems hat Joomla is not ending sessions after the session lifetime defined in the settings.

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Thu Feb 15, 2018 6:50 pm

https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
Kubik-Rubik
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 234
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: Too many number of guests online

Postby Kubik-Rubik » Thu Feb 15, 2018 6:58 pm

Jewelu wrote:I have the same problem since 3.8.4 and 3.8.5 does not fix it for me. When I kill all sessions so that the number of users online restarts at zero, it is growing again from day to day, endlessly. It seems hat Joomla is not ending sessions after the session lifetime defined in the settings.


Killing the sessions will not have an effect! The way how the sessions are destroyed changed starting from version 3.8.4.

If you are using the "Database" handler, then it depends on your server configuration whether the session will be destroyed at all. This has been changed because performance reasons (in earlier versions the sessions were removed using SQL statements, now the PHP garbage collector is used).

Check the "session.gc_probability" value (System - System Information - PHP Information). If set to 0, then you should either increase the value or add a cronjob to clean the sessions.

What is session.gc_probability?

session.gc_probability in conjunction with session.gc_divisor is used to manage probability that the gc (garbage collection) routine is started. Defaults to 1. See session.gc_divisor for details.
http://php.net/manual/en/session.configuration.php#ini.session.gc-probability

So, if your session.gc_probability is set to 0 (check your PHP Information!), then the probability that sessions will be destroyed is exactly 0%. This means that the sessions will stay in the sessions table "forever", this explains the ever-increasing values in modules like "Who is online".

You can easily change this by setting the value to a higher integer value. If session.gc_divisor is 100 and you set session.gc_probability to 10, then the probability that the gc routine will be started is 10%.

In this configuration the probability is 1%:

Screenshot 2018-02-15 19.55.09.png


If you cannot modify this value, then you could activate a cronjob that will execute the gc routine with the help of a small PHP script at certain time stamps (hourly, daily etc... as you define it in your cronjob). More information about session_gc can be obtained here: http://php.net/manual/en/function.session-gc.php

If you don't fully understand what you have to do to fix it, then you can simply switch to the "PHP" session handler in the Global Configuration.

Hope this helps! :-)
You do not have the required permissions to view the files attached to this post.
Last edited by Kubik-Rubik on Thu Feb 15, 2018 7:06 pm, edited 1 time in total.
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://joomla-extensions.kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3261
Joined: Tue Aug 23, 2005 1:56 pm
Location: Kent / Sussex / Surrey border UK
Contact:

Re: Too many number of guests online

Postby gws » Thu Feb 15, 2018 7:02 pm

@ Kubic-Rubic that's the best explanation of the problem I have seen here on the forums. Thanks.

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Thu Feb 15, 2018 7:16 pm

Thank you @Kubic-Rubic. 8)
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
Kubik-Rubik
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 234
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: Too many number of guests online

Postby Kubik-Rubik » Thu Feb 15, 2018 7:54 pm

Welcome! :-)
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://joomla-extensions.kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Thu Feb 15, 2018 9:01 pm

Not good fix for not advanced users. :(

Jewelu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 14, 2018 2:22 pm

Re: Too many number of guests online

Postby Jewelu » Thu Feb 15, 2018 9:13 pm

@Kubic-Rubic Great, thank you!

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Thu Feb 15, 2018 9:19 pm

after change for PHP have error!!! :/

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Thu Feb 15, 2018 9:21 pm

borut1978 wrote:after change for PHP have error!!! :/
What do you mean "after change for PHP"? What change did you make? What error did you have? How does your input into this discussion topic relate to the subject? ???
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Thu Feb 15, 2018 9:24 pm

Not step by step for fix too many users in modules "whoisonline".

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Thu Feb 15, 2018 9:30 pm

@borut1978: you did not answer my questions, so I will ask them again.

  1. What do you mean "after change for PHP"?
  2. What change did you make?
  3. What error did you have?
I understand that you have a complaint about the Who's Online module but we don't understand what, specifically, you are having problems with.

If you are unable to provide us with answers to the questions we ask then, I'm sorry, but we're not able to help you.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Thu Feb 15, 2018 9:34 pm

At my website she shows me for many visitors. It was good to version 3.8.3 and then you spoiled something.

User avatar
sozzled
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4862
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Too many number of guests online

Postby sozzled » Thu Feb 15, 2018 9:41 pm

@borut1978: I don't think we're talking the same language. Perhaps it might be easier if you use one of the other language-specific forum categories to ask your question to obtain "step by step" assistance for your problems.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Thu Feb 15, 2018 9:45 pm

This means that I have to finish my adventure with Joomla. Thank you.

User avatar
Kubik-Rubik
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 234
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: Too many number of guests online

Postby Kubik-Rubik » Thu Feb 15, 2018 11:09 pm

Okay, since several users have this problem, I've just wrote a small plugin which will clean the sessions table also in the "Database" handler properly!

ESK - Easy Session Killer

I've added the possibility to set the probability how often the plugin should check the database for expired sessions manually to reduce the server load and increase the performance.

The default value is 20. This means that the cleaning process will be statistically executed on every fifth call (=20%). To increase performance, you should reduce this value (e.g. 5 or 10). To increase the accuracy of modules such as "Who is online" increase the value to 50 (= every second load) or even higher. The value 100 means that the purging process will be executed on each call (not recommended but most accurate)!

Have fun and success with Joomla! 8)
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://joomla-extensions.kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3182
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: Too many number of guests online

Postby ribo » Thu Feb 15, 2018 11:55 pm

@Kubik-Rubik . Your plugin works like a charm. Very good
chat room spontes : http://www.spontes.com

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 534
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Too many number of guests online

Postby effrit » Fri Feb 16, 2018 5:09 am

[quote="Kubik-Rubik":[spam a4n]]I've just wrote a small plugin which will clean the sessions table also in the "Database" handler properly![/quote:[spam a4n]]

Thanks! It seems what many users with small sites have problem with cleaning db, because many shared hostings have wrong configuration for session garbage collecting and it's clean never.
It's strange what we must learn about such technical detail in the end of 3.x lifetime, it's like developers team want increase level of Joomla users with every single update now. :eek:
Last edited by effrit on Fri Feb 16, 2018 5:45 am, edited 1 time in total.

borut1978
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Feb 04, 2018 7:35 am

Re: Too many number of guests online

Postby borut1978 » Fri Feb 16, 2018 5:38 am

Ok, plugin works. Thanks. They could not do this right away. Thanks to the great Kubik Rubik


Return to “Extensions for Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 3 guests