domzyoung
By:
domzyoung

Gitlab and Jenkins

March 10, 2017 164 views
Nginx Applications Ubuntu 16.04

Hello, I've installed Gitlab and Jenkins on my Ubuntu 16.04 server.
It seems to work correctly except when they are both running together Gitlab will go down now and then and give me a 502, then if I refresh it works again.

Jenkins now and then will knock offline too and give me a 502 Bad Gateway.
But if Jenkins is stopped, Gitlab will work perfectly and stay up.
It just seems to be running them together. I've already changed Jenkins to use a different port to Gitlab. What else could this be?

Thanks

2 Answers

Did you check whether you're running out of memory?

  • @Woet
    Silly question, but what's the best way to check that?
    I'm also going to guess and say 2GB RAM isn't going to run these both at the same time?

    • Not sure, you can use free -m (look at "available") or grep -i "oom" /var/log/syslog

      • @Woet

        I think you're right actually. Hitting free -m shows available at like 104mb once I've restarted, if I then refresh gitlab page it's like it stops and there's more available memory again. So I guess I need to resize for more RAM if I want to run both

Have another answer? Share your knowledge.