安装时安装了
但执行gitlag-ctl reconfigure 的时候,会启动不起来,cpu爆满;
服务器卡死,命令行输入不了都!
最后只能从服务器平台重启服务器,短暂时间内里面卸载gitlab,删除进程,删除gitlab文件释放资源;
- 查看已经安装好的gitlab进程数量很多,2G的内存的是跑不起来的,2G的安装首先先把cpu给跑满了,命令行都输入不了;
git 1552 0.0 0.0 11644 720 ? Ss 18:34 0:00 /bin/bash /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper
git 1570 6.5 10.3 714396 399996 ? Sl 18:34 0:29 unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 1792 0.5 10.3 1085648 403088 ? Sl 18:35 0:02 unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
gitlab-+ 1808 0.0 0.3 1166540 13224 ? Ss 18:35 0:00 postgres: gitlab gitlabhq_production [local] idle
git 2893 0.2 10.2 712472 399788 ? Sl 18:38 0:00 unicorn worker[2] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 2909 12.9 10.5 831772 408404 ? Ssl 18:38 0:27 sidekiq 5.1.3 gitlab-rails [0 of 25 busy]
gitlab-+ 3161 0.0 0.2 1164280 8868 ? Ss 18:39 0:00 postgres: gitlab gitlabhq_production [local] idle
git 3418 0.1 10.3 712404 401072 ? Sl 18:40 0:00 unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
gitlab-+ 3426 0.0 0.2 1163708 8336 ? Ss 18:40 0:00 postgres: gitlab gitlabhq_production [local] idle
root 3953 0.0 0.0 112680 988 pts/0 S+ 18:42 0:00 grep --color=auto gitlab
root 7683 0.0 0.0 4336 100 ? Ss 14:58 0:00 runsvdir -P /opt/gitlab/service log: ...........................................................................................................................................................................................................................................................................................................................................................................................................
root 8209 0.0 0.0 4184 84 ? Ss 14:59 0:00 runsv gitlab-workhorse
root 8539 0.0 0.0 4184 84 ? Ss 15:00 0:00 runsv gitlab-monitor
root 8763 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/redis
root 8764 0.0 0.0 4328 96 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/postgresql
root 8768 0.0 0.0 4328 96 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/unicorn
root 8769 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/sidekiq
root 8785 0.0 0.0 4328 96 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/gitlab-workhorse
root 8806 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/gitaly
root 8807 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/node-exporter
root 8817 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/gitlab-monitor
root 8818 0.0 0.0 4328 92 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/redis-exporter
root 8820 0.0 0.0 4328 88 ? S 15:00 0:00 svlogd -tt /var/log/gitlab/logrotate
root 8834 0.0 0.0 4328 92 ? S 15:01 0:00 svlogd -tt /var/log/gitlab/prometheus
root 8858 0.0 0.0 4328 92 ? S 15:01 0:00 svlogd -tt /var/log/gitlab/alertmanager
root 8911 0.0 0.0 4328 92 ? S 15:01 0:00 svlogd -tt /var/log/gitlab/postgres-exporter
gitlab-+ 17903 0.0 0.0 329224 3184 ? Ssl 15:27 0:10 /opt/gitlab/embedded/bin/alertmanager --web.listen-address=localhost:9093 --storage.path=/var/opt/gitlab/alertmanager/data --config.file=/var/opt/gitlab/alertmanager/alertmanager.yml
git 17913 0.4 0.8 524724 33296 ? Ssl 15:27 0:57 /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml
git 17925 0.4 1.1 531696 46456 ? Ssl 15:27 0:51 /opt/gitlab/embedded/bin/ruby /opt/gitlab/embedded/bin/gitlab-mon web -c /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml
git 17930 0.1 1.3 1645656 53880 ? Sl 15:27 0:18 ruby /opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby 17913 /tmp/gitaly-ruby850699755/socket.1
git 17932 0.1 1.3 1321048 52484 ? Sl 15:27 0:18 ruby /opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby 17913 /tmp/gitaly-ruby850699755/socket.0
git 17938 0.0 0.2 244712 11188 ? Ssl 15:27 0:03 /opt/gitlab/embedded/bin/gitlab-workhorse -listenNetwork unix -listenUmask 0 -listenAddr /var/opt/gitlab/gitlab-workhorse/socket -authBackend http://localhost:8080 -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public -pprofListenAddr -prometheusListenAddr localhost:9229 -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret -config config.toml
gitlab-+ 17954 0.0 0.2 18532 10176 ? Ssl 15:27 0:08 /opt/gitlab/embedded/bin/node_exporter --web.listen-address=localhost:9100 --collector.textfile.directory=/var/opt/gitlab/node-exporter/textfile_collector
gitlab-+ 17959 0.0 0.2 76492 8280 ? Ssl 15:27 0:07 /opt/gitlab/embedded/bin/postgres_exporter --web.listen-address=localhost:9187 --extend.query-path=/var/opt/gitlab/postgres-exporter/queries.yaml
gitlab-+ 17965 0.0 1.2 1058796 46924 ? Ss 15:27 0:00 /opt/gitlab/embedded/bin/postgres -D /var/opt/gitla/postgresql/data
gitlab-+ 17967 0.0 0.5 1059060 20284 ? Ss 15:27 0:00 postgres: checkpointer process
gitlab-+ 17968 0.0 0.2 1058796 9380 ? Ss 15:27 0:00 postgres: writer process
gitlab-+ 17969 0.0 0.4 1058796 18236 ? Ss 15:27 0:00 postgres: wal writer process
gitlab-+ 17970 0.0 0.0 1059388 2824 ? Ss 15:27 0:00 postgres: autovacuum launcher process
gitlab-+ 17971 0.0 0.0 33136 2452 ? Ss 15:27 0:01 postgres: stats collector process
gitlab-+ 18047 0.6 1.6 815788 64468 ? Ssl 15:27 1:10 /opt/gitlab/embedded/bin/prometheus -web.listen-address=localhost:9090 -storage.local.path=/var/opt/gitlab/prometheus/data -storage.local.chunk-encoding-version=2 -storage.local.target-heap-size=105711452 -config.file=/var/opt/gitlab/prometheus/prometheus.yml
gitlab-+ 18058 0.3 0.1 41484 3960 ? Ssl 15:27 0:45 /opt/gitlab/embedded/bin/redis-server 127.0.0.1:0
gitlab-+ 18062 0.0 0.3 232120 13124 ? Ssl 15:27 0:07 /opt/gitlab/embedded/bin/redis_exporter -web.listen-address=localhost:9121 -redis.addr=unix:///var/opt/gitlab/redis/redis.socket
gitlab-+ 18104 0.0 0.2 1164780 10416 ? Ss 15:27 0:08 postgres: gitlab-psql postgres [local] idle
gitlab-+ 18107 0.0 0.3 1165060 12556 ? Ss 15:27 0:08 postgres: gitlab gitlabhq_production [local] idle
gitlab-+ 18111 0.0 0.2 1164180 8732 ? Ss 15:27 0:02 postgres: gitlab gitlabhq_production [local] idle
gitlab-+ 18112 0.0 0.2 1164388 10084 ? Ss 15:27 0:06 postgres: gitlab gitlabhq_production [local] idle
root 32454 0.0 0.0 11636 212 ? Ss 18:27 0:00 /bin/sh /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper
相信坚持的力量,日复一日的习惯.