Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab is slow slow slooow. #13

Closed
mauvm opened this issue Jan 10, 2014 · 5 comments
Closed

GitLab is slow slow slooow. #13

mauvm opened this issue Jan 10, 2014 · 5 comments

Comments

@mauvm
Copy link

mauvm commented Jan 10, 2014

My GitLab instance is painfully slow - with page loading times of 5-30 seconds.

The assets are cached properly and return a 304 Not Modified. So my first guess would be that there is a bunch load of (error)logging running in the background.. Is there a way I can figure out what's causing this?

sudo find /opt/gitlab -name *.log didn't show any available log files to inspect.

@sameersbn
Copy link
Owner

Was it fine before?

  1. Since gitlab-6.4.x, the start up time of the container is gone up. But that's just at start up. After which it is fine.
  2. Check your system load
  3. Clean up leftover docker containers using
$ docker rm $(docker ps -a -q)

Above command will delete all docker containers (not images) that are not currently running. This is sort of a clean up. When I was new to docker, I noticed that this slows down everything.

  1. What is the docker version you are using. If you are using docker > 0.7.2, then I you suggest you downgrade to 0.7.2 and check again. Personally I am seeing all sorts of issue with docker > 0.7.2. So I have held back upgrading docker at the moment.
sudo service docker stop
sudo apt-get purge lxc-docker*
sudo apt-get install lxc-docker-0.7.2
sudo service docker start

Let me know if any of the above helps.

Regards
~Sameer

Let me know.

@sameersbn
Copy link
Owner

P.S. the container by default is configured to run in production mode.
Need to add option to run it in development mode (thought i had already done that)

@mauvm
Copy link
Author

mauvm commented Jan 10, 2014

No it was slow from the beginning. Thanks for replying so quickly btw.

  1. That's not the problem. But thanks for letting me know. :)
  2. Memory and CPU usage is around 30-40% when loading a page.
  3. $ docker ps -a only shows the GitLab container, so no need for that.
  4. Docker version 0.7.3, build 8502ad4.. Will try out using Docker 0.7.2 on monday.

Cheers!

@mauvm
Copy link
Author

mauvm commented Jan 13, 2014

Awesome! Downgrading to Docker 0.7.2 drastically improved loading speed.

Seems like this issue is resolved in the latest version: moby/moby#3468

@mauvm mauvm closed this as completed Jan 13, 2014
@sameersbn
Copy link
Owner

@mauvm I would still advice against updating to docker > 0.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants