Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket Server create 100% CPU utilization

Since about two weeks we can regularly see Bitbucket Server (v7.3.2) create 100% CPU utilization on all of the 8 cores the VM running it has. The website is not accessible when this occurs, even when waiting for 10 minutes. The only way to make it accessible is by restarting the whole application.

One of the last times it happened I was able to connect to the application via JProfiler an get a thread dump. I could see multiple threads running in what seemed to me like an infinite loop. All the threads in org.hibernate.cache.spi.support.SimpleTimestamper.next() (line:38) where running.

As it seems to me that the problem has something to do with user directories I already replaced the direct LDAP directory connection with one that uses our Jira server to access the LDAP directory indirectly, but that did unfortunately not help.

After that I looked into the actual hibernate code which indeed runs in an infinite loop (although I do not really get why every thread says line 38 and not any of the other lines in the loop). Regarding this exact method I found Hibernate issue HHH-13664, but by monitoring the system time when the issue occurred another time I could rule out, that our servers time was set to any time in the past.

Right now we have to restart the application about 2 or 3 times a day (in about 9 office hours).

1 answer

We have a similar problem.

The VM is provided with 8 vCores. Regulary BitBucket uses up to 4 cores (~385%), but some times the cpu consumptionen rises up to 750%. Then the website isn't accessable.
After some minutes (up to one hour) the application calms down oneself without any restart, but in the meantime our devolpers can't work and our Jenkins processes hang up.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you