--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 8 Apr 2018, at 18:21, vista...@gmail.com wrote:There is a bug in gerrit-server/src/main/java/com/google/gerrit/server/project/ListProjects.javaAny account click the button of "Projects -- List" and all of GitProjects in gerrit will be scaned one time which right permissions for the accounts.
On Sunday, April 8, 2018 at 11:37:18 PM UTC+8, vista...@gmail.com wrote:And the number of Git Projects : about 10000.
On Sunday, April 8, 2018 at 9:25:05 AM UTC+8, vista...@gmail.com wrote:Hi all:Something very strange is happening in my gerrit.Some accounts click the button of "Projects -- List" and "People -- List Groups" and the results return take a few time about 5-10s,but 1-5s for other accounts.What is the problem?Thanks!
On 8 Apr 2018, at 18:21, vista...@gmail.com wrote:There is a bug in gerrit-server/src/main/java/com/google/gerrit/server/project/ListProjects.javaAny account click the button of "Projects -- List" and all of GitProjects in gerrit will be scaned one time which right permissions for the accounts.If projects cache is full, the scanning of 10k in memory should take a small fraction of a second: 10s CPU time is *a lot* for scanning 10k objects in memory.Can you check your cache configs (gerrit.config / [cache "<something>"]) ?The default cache size is 1024 and, if you haven't customised anything about caching on your gerrit.config, it could be the reason why the scanning takes so long.Luca.
On Sunday, April 8, 2018 at 11:37:18 PM UTC+8, vista...@gmail.com wrote:And the number of Git Projects : about 10000.
On Sunday, April 8, 2018 at 9:25:05 AM UTC+8, vista...@gmail.com wrote:Hi all:Something very strange is happening in my gerrit.Some accounts click the button of "Projects -- List" and "People -- List Groups" and the results return take a few time about 5-10s,but 1-5s for other accounts.What is the problem?Thanks!--
--
To unsubscribe, email repo-disc...@googlegroups.com
To unsubscribe, email repo-discuss...@googlegroups.com
[cache "projects"]maxAge = 30sloadOnStartup = truememoryLimit = 20000Also quite slow! :-(
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
To unsubscribe, email repo-discuss...@googlegroups.com
On Sunday, April 15, 2018 at 7:44:30 AM UTC+8, Matthias Sohn wrote:On Sat, Apr 14, 2018 at 10:21 AM, <vista...@gmail.com> wrote:[cache "projects"]maxAge = 30sloadOnStartup = truememoryLimit = 20000Also quite slow! :-(why do you expire entries in projects cached already after 30sec ?This means Gerrit has to scan the file system for git repositories every30 seconds to rediscover all the repositories under the folder at hand.
Hi,Matthias Sohn.This is for the new projects.
"projects"
Caches the project description records, from the projects
table in the database. If a project record is updated or deleted, this cache should be flushed. Newly inserted projects do not require a cache flush, as they will be read upon first reference.
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.