Upgrade to 2.0.1 from 1.3 - Very slow push (>20 seconds)

I had another issue with Stash after upgrading (SSP-548) and I was hoping that by fixing that I also got rid of this issue - but I still have the problem.

Excerpt from the logs (profiler):

{code}

141ms - GET /scm/TEST/foo.git/info/refs HTTP/1.1

141ms - StashUser com.atlassian.stash.user.UserService.authenticate(String,String,CaptchaResponse)

0ms - Object com.atlassian.stash.user.SecurityService.doWithPermission(String,Permission,Operation)

0ms - Repository com.atlassian.stash.repository.RepositoryService.findBySlug(String,String)

0ms - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.findBySlugAndProjectKey(String,String)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

...

2013-01-17 09:48:31,971 http-apr-7990-exec-6 thomas

172ms - GET /scm/TEST/foo.git/info/refs HTTP/1.1

141ms - StashUser com.atlassian.stash.user.UserService.authenticate(String,String,CaptchaResponse)

0ms - InternalStashUser com.atlassian.stash.internal.user.StashUserDao.findByName(String)

0ms - void com.atlassian.stash.internal.user.RepositoryAccessDao.trimToFirstPage(InternalStashUser,int,Predicate)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - Integer com.atlassian.stash.internal.user.StashUserDao.findIdByName(String)

0ms - boolean com.atlassian.stash.user.PermissionService.hasGlobalPermission(StashUser,Permission)

0ms - Page com.atlassian.stash.user.UserService.findGroupsByUser(String,PageRequest)

0ms - Map com.atlassian.stash.internal.user.GrantedPermissionDao.mapPermissionsByProject(Integer,Set)

0ms - Object com.atlassian.stash.user.SecurityService.doWithPermission(String,Permission,Operation)

0ms - Repository com.atlassian.stash.repository.RepositoryService.findBySlug(String,String)

0ms - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.findBySlugAndProjectKey(String,String)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.scm.ScmRequestCheckService.checkActionAllowed(ScmRequest)

0ms - boolean com.atlassian.stash.license.LicenseService.canLogin(Principal)

0ms - boolean com.atlassian.stash.user.PermissionService.hasGlobalPermission(StashUser,Permission)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(Repository,Permission)

0ms - Ticket com.atlassian.stash.throttle.ThrottleService.acquireTicket(String)

31ms - C: Program Files (x86) Git bin git.exe http-backend

...

33391ms - POST /scm/TEST/foo.git/git-receive-pack HTTP/1.1

203ms - StashUser com.atlassian.stash.user.UserService.authenticate(String,String,CaptchaResponse)

0ms - InternalStashUser com.atlassian.stash.internal.user.StashUserDao.findByName(String)

0ms - void com.atlassian.stash.internal.user.RepositoryAccessDao.trimToFirstPage(InternalStashUser,int,Predicate)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.internal.user.GrantedPermissionDao.isGrantedToUser(UserPermissionSearchCriteria)

15ms - Integer com.atlassian.stash.internal.user.StashUserDao.findIdByName(String)

0ms - boolean com.atlassian.stash.user.PermissionService.hasGlobalPermission(StashUser,Permission)

0ms - Page com.atlassian.stash.user.UserService.findGroupsByUser(String,PageRequest)

0ms - Map com.atlassian.stash.internal.user.GrantedPermissionDao.mapPermissionsByProject(Integer,Set)

0ms - Object com.atlassian.stash.user.SecurityService.doWithPermission(String,Permission,Operation)

0ms - Repository com.atlassian.stash.repository.RepositoryService.findBySlug(String,String)

0ms - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.findBySlugAndProjectKey(String,String)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(StashUser,Repository,Permission)

0ms - boolean com.atlassian.stash.scm.ScmRequestCheckService.checkActionAllowed(ScmRequest)

0ms - boolean com.atlassian.stash.license.LicenseService.canLogin(Principal)

0ms - boolean com.atlassian.stash.user.PermissionService.hasGlobalPermission(StashUser,Permission)

0ms - boolean com.atlassian.stash.user.PermissionService.hasRepositoryPermission(Repository,Permission)

0ms - Ticket com.atlassian.stash.throttle.ThrottleService.acquireTicket(String)

33188ms - C: Program Files (x86) Git bin git.exe http-backend

{code}

2 answers

1 accepted

After installing Stash as a Windows Service (https://confluence.atlassian.com/display/STASH/Running+Stash+as+a+Windows+service) the "Atlassian Stash" service runs as "Local System". This is turn executes git.exe as Administrator which makes "push" slow.

By changing the user who runs the "Atlassian Stash" service to a local Windows user (without Administrator rights) pushing is fast again.

0 votes
Daniel Rohan Atlassian Team Apr 22, 2013

Hello Thomas,

We've written this KB article:

Git Push Operations Extremely Slow on Windows

Thanks

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

654 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot