cancel
Showing results for 
Search instead for 
Did you mean: 

3.4.b user usages take 20 minutes on startup.

bnordgren
Champ in-the-making
Champ in-the-making
I'm using the default configuration that comes with 3.4.b (custom install), more or less. My "initial content" comes from our existing 3.3g installation and has 45000+ users and a moderate amount of content. Every time I start Tomcat, I wait 20 minutes for Alfresco to recalculate the user usages. Worse, after 20 minutes it finds that there's nothing to be done.

Is there anything I can do to speed this up? 3.2r2 and 3.3g didn't do this.


17:43:20,171 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
17:43:20,171 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
18:05:46,140 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
18:05:46,140 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users

Thanks,
Bryce
5 REPLIES 5

janv
Employee
Employee
Based on your details this sounds like a regression. Can you please log in JIRA (https://issues.alfresco.com) ?

If you do not currently make use of user usages (or quotas) then you should be able to disable them by editing "alfresco-global.properties"


system.usages.enabled=false
although please bear in mind that if you do decide to re-enable them then they will need to be re-calculated (for each user).

Regards,
Jan

bnordgren
Champ in-the-making
Champ in-the-making

bnordgren
Champ in-the-making
Champ in-the-making
Yowsa. I turned off system.usages.enabled. Probably a mistake.

It took the same 20 minutes to decide what to do, but this time it decided that it needed to clear ~42000 users. It's now 2 hours into the "clearing" process and its not done yet. To anyone else out there having this same problem, I'd recommend just being happy with the twenty minutes.


09:24:12,593 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Disabled - clear non-missing user usages …
09:42:30,031 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 42438 users to clear

Current time is 11:45 by this system's clock.

bnordgren
Champ in-the-making
Champ in-the-making
Final time 3.5+ hours:


09:24:12,593 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Disabled  - clear non-missing user usages …
09:42:30,031 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 42438 users to clear
13:18:40,781 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … cleared non-missing usages for 42438 users

Hopefully now I'll be back down to 20 minutes.

janv
Employee
Employee
Sorry about that. I've updated the JIRA with a possible workaround and a couple of questions … ?

Thanks,
Jan