Hi.
We have a server with scm-manager.
Two weeks ago, I updated from v2.41 to v2.42. Since then, whenever someone logs in via the web interface java uses lots of resources. We have 4 available processors and the CPU is around 80% on the 4 of them (around 300%-380% total CPU usage according to top). The host runs (upon uname -a):
Linux 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Repository usage works fine from git/svn clients. The issue only affects the web interface, which is extremely slow.
We have around 1K repositories, mainly git. We have run scm-server without issues for a long time with near 1.5K repos. I did a cleanup last week after the problems arose.
Reviewing the log, I can see very frequent INFO entries for
- sonia.scm.repository.spi.GitCatCommand
- sonia.scm.user.DefaultUserManager, with message “modify user XXXX of type null”
Additionally, I see frequent ERROR entries for
- sonia.scm.work.UnitOfWork - task sonia.scm.search.LuceneSimpleIndexTask@91831f failed after XX.XX ms
- ERROR com.github.legman.EventBus - ScmEventBus-1 - could not dispatch event: RepositoryHookEvent{repository=XXXXXXXXXX (AuTW1dlob6SK), type=POST_RECEIVE} to handler SynchronizedEventHandler{null, public void sonia.scm.statistic.StatisticListener.onHookEvent(sonia.scm.repository.PostReceiveRepositoryHookEvent), true}
- Errors related to missing paths in some svn repositories.
- While browsing a repo via the web: ERROR sonia.scm.repository.spi.SvnBrowseCommand - could not fetch file properties
- As a result of internal operation: sonia.scm.NotFoundException: could not find path with id VP01/untitled/untitled.vpp in revision with id 302 in repository with id XXXXXXXXX
This is the information I found most relevant reviewing the logs.
I’d appreciate any help to diagnose the problem.
Best regards
Ignacio