-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend extremely slow on "large" sites due to User Status backend module #19750
Comments
@ZoccoloCD Can you please open the database and check the sessions table? How many entries do you have there? |
I'm checking 1 of the sites now; 1 session in the session table currently, but the user status bar shows 2050 logged in users. |
@Kubik-Rubik seems like the mod_status.php was changed quite a bit earlier and takes a lot of time to query the session tables. If however you were to put an index on the guest column, the query wouldn't take that long. So this did it for me:
|
Hi, I have had the same issue on a large site. I've been trying to figure out the reason for days when I came across this page. Disabling the user stats plugin brought the site back to normal. |
@nickdring can you please test Pull Request #19708? |
IMO we have tow options:
|
Are you absolutely positive your Joomla session db table is empty? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19750. |
@GCLW When Kubik-Rubik asked me there was only 1 active session, now I see hundreds of thousands in the same database. But the site is running on 3.8.4. Do I understand correctly that this problem (sessions are not deleted) was introduced in 3.8.4 but is still existent in 3.8.5? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19750. |
Correct, a change in 3.8.4 causes the runaway session table. It was not reverted for 3.8.5, and I do not know if it will be fixed with 3.8.6. I have to run nightly cron jobs on all but one of my sites to clean the session table. |
Yes, it will be fixed in v3.8.6 per #19687. |
@Quy can this Issue be closed? |
I guess so as 3.8.6 (to be released on the 13th) solves the issue. |
I can put the release on a staging or dev server but I cannot deploy to production so this isn't much use to you I fear as we don't have user connected to those environments. |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19750 |
Closing as this will be fixed in v3.8.6 and there is a discussion on this in Joomla Forums. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19750. |
This hasn't been resolved with 3.8.6 |
@nickdring did you clean up the session table? |
Hi @brianteeman No I hadn't. I've done it and reenabled the plugin and for now all seems quite speedy. |
:) |
@nickdring You can test #19708, which should speed up operations such as adding new or updating the session metadata. It is difficult to see any improvements on small site, but it speeds up queries to the database with high traffic. |
Steps to reproduce the issue
Try browsing through the backend of a site that has lots of members/users that are logged in.
Expected result
Normal backend speed.
Actual result
Extremely slow backend speed.
System information (as much as possible)
Various systems with various hosts, php 5.6 to 7.1 with newest joomla versions.
Additional comments
I've done debugging on the sites and in some cases the user stats backend module takes 30.000 milliseconds to load, making the backend unworkable. Disabling the module solves this.
I couldn't find this issue in the tracker yet eventhough many of our clients were running into this issue. Luckily a workaround for now works by disabling the modules, but hope this can be fixed.
The text was updated successfully, but these errors were encountered: