Feature #19102
closedRedmine doesnt scale with large amount of projects
Added by Dell Green almost 10 years ago. Updated about 1 month ago.
0%
Description
I have approx 500 projects with subprojects included in that number. The quick jump project pop up causes massive slow downs on view rendering and huge amounts of html sent to the browser. They appear top right on virtually all pages and when editing issues.
It would be helpful if there was a smarter configuration option to turn these popups off and use live smart search box to match the project/projects required as popups are not appropriate for large data sets.
To work around the problem I have edited application_helper.rb and made the render_project_jump_box function a no-op and now my redmine naviagtion has gone from 5.5 secs view rendering to 500ms which is much better. Am using search bar to quick jumpt to project at the moment and will test other search plugins.
will live with popups on editing sections at the moment until I find a better solution for that.
Files
redmine queries.zip (18.4 KB) redmine queries.zip | admin and user query logs for same query | Dell Green, 2015-02-16 11:22 |
Related issues
Updated by Jean-Philippe Lang almost 10 years ago
- Status changed from New to Needs feedback
I've done a quick test with a user having 500 projects, I get an average 600ms response time and was able to reduce it to 400ms with r14003.
5s for rendering the project quick jump seems a lot, could you post the application log with log level set to debug to see what is going on? Could you also give r14003 a try on your setup?
Updated by Dell Green almost 10 years ago
Ok great. When i get back to work tmr i'll post the debug logs as requested.
In the meantime can you please try 50 projects each with a subproject that has itself 10 subprojects as this would more closely match our setup
I have also edited redmine file i think it was query.rb to remove entire project list from issues filter section and get a huge speed increase for this page
Strangely all these speed increases are only seen for anyone logged in as an adminustrator. Normal users still experience 5secs, admins 500ms.
Am using latest bitnami redmine stack, but have seen this problem for years but never found the problem
Gut feeling its related to the number of levels of nedted suprojects. No ides why admin would see faster times than normal user
Updated by Jean-Philippe Lang almost 10 years ago
Dell Green wrote:
In the meantime can you please try 50 projects each with a subproject that has itself 10 subprojects as this would more closely match our setup
I've tried this exact setup with current trunk and 2.6-stable, response times are not much different.
Started GET "/" for 127.0.0.1 at 2015-02-15 09:07:26 +0100 Processing by WelcomeController#index as HTML Current user: xxxx (id=xxxx) Rendered news/_news.html.erb (3.0ms) Rendered welcome/index.html.erb within layouts/base (7.0ms) Completed 200 OK in 422ms (Views: 124.0ms | ActiveRecord: 24.0ms)
Updated by Dell Green almost 10 years ago
Hmm, ok thanks. I'll post the debug logs tmr, maybe this will shed some light on the problem.
It must be my data is some way as i have installed the data on fresh installs of bitnami redmine on mac and linux and the problem is the same.
Updated by Dell Green almost 10 years ago
- File redmine queries.zip redmine queries.zip added
Ok so i have ran the view all issues query both as admin and as a normal user, and the admin user generates approx 15k query data, and the normal user generates 82k.
Also there are a lot of SELECT - WHERE - IN sql statements using arrays of ids. I would sensitively suggest that there are probably more optimal ways to to write these queries (to be better scalable for larger data-sets), as a single query using JOINS and temp tables if necessary rather than multiple queries and code manipulation. I appreciate you don't have Common Table expressions in mysql to make life easier for you.
Updated by Toshi MARUYAMA over 9 years ago
- Related to Defect #19103: Access times for Admin vs normal user huge difference added
Updated by Toshi MARUYAMA over 9 years ago
- Related to deleted (Defect #19103: Access times for Admin vs normal user huge difference)
Updated by Toshi MARUYAMA over 9 years ago
- Has duplicate Defect #19103: Access times for Admin vs normal user huge difference added
Updated by Dell Green over 9 years ago
Please let me know if you require any further information.
Updated by Go MAEDA almost 9 years ago
- Related to Patch #21611: Do not collect ids of subtree in Query#project_statement added
Updated by Luca Lenardi about 8 years ago
We are experiencing the exact same issue:
- long project list (around 300) – we have just 3 sub-projects.
- Redmine v3.3.0
- load time for normal user (same number of projects, roles, permissions and same page): 5 sec (avg)
- load time for admin user: 1.5 sec (avg)
This was tested in a staging machine on Bitnami Redmine with Apache, Passenger and MySQL. Single request mode.
Is there something else we can do to gather more information about this issue?
Updated by Luca Lenardi about 8 years ago
After other research on the subject we found what follow:
- removing the quick jump bar does not solve the problem at all;
- users participating in few (10-20) projects have lighting fast responses (in 8-500 ms range);
There should be something related to the number of projects in connection with the membership and permissions check; the point is that it happens even inside a project and not only in the projects list, where there's no reason (apparently) to check permissions on each request. This problem makes Redmine not usable with more then a few project (actually we have just 350).
So, anyone has some suggestions on how to delve deeper in this issue?
Thanks!
Updated by Jean Louis almost 8 years ago
+1
I have ~1000 projects and ~100 users and have same problem.
The performance is good (loading pages between 0,3 and 1,0 second) for admin account, but when access to the same pages with other users (with limited permissions), the performance is bad (loading pages between 5 and 7 seconds)
In debug mode, I can see that the SQL requests are very big with users permissions on hundred of projects (a lot of project_id).
JL, a french user.
Updated by Anders Thomsen almost 8 years ago
+1
When member of a group that's in 600 projects (actually, member of one top project with 600 sub-projects with inherit members enabled), the issues page takes 3-4 sec to show. When not a member it takes a few 100 ms. (Non-members can view issues too).
RM 3.1.1-stable
Ruby 2.1.7-p400 [x64-mingw32]
Rails 4.2.7.1
DB: SQL Server 2014
Updated by Renê Barbosa over 7 years ago
+1
Environment:
Redmine version: 3.3.3.stable
Ruby version: 2.1.10-p492 (2016-04-01) [x86_64-linux]
Rails version: 4.2.7.1
Environment: production
Database adapter: Mysql2
SCM:
Filesystem
Redmine plugins:
no plugin installed
Updated by Toshi MARUYAMA over 7 years ago
- Related to Defect #26016: Redmine is slow to some users added
Updated by Dell Green over 7 years ago
As an update. Previously i was running our redmine instance on a mac mini core i7 with mac os, recently i moved it over to an HPE Proliant dl380 g6 runnng linux and the exact same problem exists. In both cases whenever anyone loads a page i see a ruby process for each user running at 100% for 5 to 10 seconds while the page is retrieved for each user. So its not platform or resource related.
Any tips for reducing the query time would be greatly appreciated.
Updated by Renê Barbosa over 7 years ago
About:
As an update. Previously i was running our redmine instance on a mac mini core i7 with mac os, recently i moved it over to an HPE Proliant dl380 g6 runnng linux and the exact same problem exists. In both cases whenever anyone loads a page i see a ruby process for each user running at 100% for 5 to 10 seconds while the page is retrieved for each user. So its not platform or resource related.
I can confirm it. We increased the vCPUs of our server (2 to 4 Intel Xeon E5-2640 2.60GHz cores) and the exact same problem exists. This is clearly an application issue.
Updated by Renê Barbosa over 7 years ago
It looks like the issue was fixed in 3.4.0.
Updated by Mischa The Evil over 7 years ago
Updated by Anders Thomsen almost 7 years ago
Yes, performance is much better now. Still not as fast as with admin users though.
Updated by Holger Just about 1 month ago
- Status changed from Needs feedback to Closed
- Resolution set to Fixed
I'm closing this as (most of) the issues described here seem to be fixed.
If you still observe performance issues in a current version of Redmine, please open an new issue.