Помогите разобраться что не так с VPS

A
На сайте с 25.04.2010
Offline
31
687

Всех приветствую!

Столкнулся с проблемой при переезде на новый ВПС.

Захостил один свой гсайт на VPS 128Mb ram без swap/3Gb HDD c панелью Vestacp.

Посещалка минимум и все работает как надо


[root@null ~]# uname -a
Linux xxxx.xx 2.6.32-042stab081.3 #1 SMP Mon Sep 9 20:07:47 MSK 2013 i686 i686 i386 GNU/Linux
[root@null ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)
[root@null ~]# free -m
total used free shared buffers cached
Mem: 128 114 13 0 0 59
-/+ buffers/cache: 54 73
Swap: 0 0 0
[root@null ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 2176 168 ? Ss 06:12 0:00 init [3]
root 2 0.0 0.0 0 0 ? S 06:12 0:00 [kthreadd/630]
root 3 0.0 0.0 0 0 ? S 06:12 0:00 [khelper/630]
root 154 0.0 0.2 2312 272 ? S<s 06:12 0:00 /sbin/udevd -d
root 626 0.0 0.2 1832 264 ? Ss 06:12 0:00 syslogd -m 0
root 652 0.0 0.5 7260 688 ? Ss 06:12 0:00 /usr/sbin/sshd
root 660 0.0 0.1 2852 224 ? Ss 06:12 0:00 xinetd -stayali
root 721 0.0 0.6 3352 812 ? Ss 06:12 0:00 crond
root 729 0.0 0.2 5712 308 ? Ss 06:12 0:00 /usr/sbin/sasla
root 731 0.0 0.2 5712 288 ? S 06:12 0:00 /usr/sbin/sasla
root 1569 0.0 0.7 27000 1024 ? Ss 06:17 0:00 nginx: master p
root 1602 0.0 14.5 117056 19084 ? Ss 06:17 0:00 /usr/sbin/httpd
root 1715 0.0 0.5 2568 772 ? S 06:17 0:00 /bin/sh /usr/bi
mysql 2174 0.0 29.3 225388 38424 ? Sl 06:17 0:06 /usr/libexec/my
named 2245 0.0 2.2 14916 2916 ? Ssl 06:17 0:00 /usr/sbin/named
exim 2302 0.0 0.7 12364 1008 ? Ss 06:17 0:00 /usr/sbin/exim
root 2321 0.0 0.2 1984 272 ? Ss 06:17 0:00 /usr/sbin/dovec
root 2325 0.0 0.9 7868 1228 ? S 06:17 0:00 dovecot-auth
dovecot 2332 0.0 0.8 5024 1176 ? S 06:17 0:00 pop3-login
dovecot 2333 0.0 0.8 5024 1172 ? S 06:17 0:00 pop3-login
dovecot 2334 0.0 0.8 5024 1176 ? S 06:17 0:00 pop3-login
dovecot 2335 0.0 0.8 5028 1176 ? S 06:17 0:00 imap-login
dovecot 2336 0.0 0.8 5028 1176 ? S 06:17 0:00 imap-login
dovecot 2337 0.0 0.9 5028 1184 ? S 06:17 0:00 imap-login
nginx 2727 0.0 0.9 27004 1208 ? S 06:17 0:00 nginx: worker p
nginx 2728 0.0 0.7 27004 1024 ? S 06:17 0:00 nginx: worker p
nginx 2729 0.0 0.6 27004 912 ? S 06:17 0:00 nginx: cache ma
root 2792 0.0 0.2 5328 360 ? Ss 06:17 0:00 /usr/sbin/vsftp
apache 2955 0.0 4.6 117056 6144 ? S 06:17 0:00 /usr/sbin/httpd
root 4454 0.0 0.4 16292 572 ? Ss 06:17 0:00 nginx: master p
admin 4457 0.0 0.5 16292 664 ? S 06:17 0:00 nginx: worker p
root 4458 0.0 1.2 12760 1692 ? Ss 06:17 0:00 php-fpm: master
admin 4460 0.0 1.1 12760 1536 ? S 06:17 0:00 php-fpm: pool w
admin 4461 0.0 1.1 12760 1536 ? S 06:17 0:00 php-fpm: pool w
root 13738 0.0 2.5 10160 3296 ? Ss 09:33 0:00 sshd: root@pts/
root 13740 0.0 1.0 2572 1344 pts/0 Ss 09:34 0:00 -bash
root 13759 0.0 0.6 2288 836 pts/0 R+ 09:35 0:00 ps aux

Статистика использования памяти http://i.snag.gy/EufrA.jpg

Решил переехать на более мощный VPS к другому провайдеру и тут начались проблемы.

Конфиг 1х3Ггц/300Mb ram без swap/2Гб SSD

[root@server ~]# free -m

total used free shared buffers cached
Mem: 300 9 290 0 0 9
-/+ buffers/cache: 0 300
Swap: 0 0 0
[root@server ~]# uname -a
Linux xxxx.xx 2.6.32-042stab079.6 #1 SMP Mon Aug 26 19:47:50 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@server ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)

На новой машине не хватает памяти для запуска всех сервисов, которые тянет за собой эта панель.

После обрыва установки из-за нехватки памяти видим такую картину с половиной не запущеных сервисов

[root@server ~]# free -m

total used free shared buffers cached
Mem: 300 293 6 0 0 293
-/+ buffers/cache: 0 300
Swap: 0 0 0
[root@server ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 10364 744 ? Ss 18:52 0:00 init [3]
root 2 0.0 0.0 0 0 ? S 18:52 0:00 [kthreadd/114]
root 3 0.0 0.0 0 0 ? S 18:52 0:00 [khelper/114]
root 98 0.0 0.2 12784 800 ? S<s 18:52 0:00 /sbin/udevd -d
root 387 0.0 0.2 5928 644 ? Ss 18:52 0:00 syslogd -m 0
root 415 0.0 0.3 62684 1208 ? Ss 18:52 0:00 /usr/sbin/sshd
root 423 0.0 0.3 21660 944 ? Ss 18:52 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 467 0.0 0.3 19720 1160 ? Ss 18:52 0:00 crond
root 475 0.0 0.2 46764 824 ? Ss 18:52 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
root 477 0.0 0.1 46764 544 ? S 18:52 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
root 482 0.0 1.2 86080 3720 ? Ss 18:52 0:00 sshd: root@pts/0
root 501 0.0 0.4 10916 1528 pts/0 Ss 18:53 0:00 -bash
root 621 0.0 1.2 85976 3688 ? Ss 18:57 0:00 sshd: root@pts/1
root 623 0.0 0.4 10916 1504 pts/1 Ss 18:57 0:00 -bash
root 641 0.1 0.9 14564 2828 pts/1 S+ 18:57 0:00 htop
root 1461 0.0 0.3 63700 1052 ? Ss 19:04 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 1464 0.0 0.5 64216 1604 ? S 19:04 0:00 nginx: worker process
nginx 1465 0.0 0.5 64216 1604 ? S 19:04 0:00 nginx: worker process
nginx 1466 0.0 0.4 63912 1424 ? S 19:04 0:00 nginx: cache manager process
root 1494 0.0 7.8 407632 23976 ? Ss 19:04 0:00 /usr/sbin/httpd
apache 1498 0.0 2.4 407632 7416 ? S 19:04 0:00 /usr/sbin/httpd
root 1513 0.0 0.2 45188 636 ? Ss 19:04 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 1607 0.0 0.4 10780 1336 pts/0 S 19:04 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.so
mysql 2066 0.1 14.4 275228 44396 pts/0 Sl 19:04 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/my
named 2144 0.0 1.2 64684 3768 ? Ssl 19:04 0:00 /usr/sbin/named -u named
exim 2185 0.0 0.4 85500 1512 ? Ss 19:04 0:00 /usr/sbin/exim -bd -q1h
root 2204 0.0 0.2 6072 616 ? Ss 19:04 0:00 /usr/sbin/dovecot
root 2208 0.0 0.8 61640 2496 ? S 19:04 0:00 dovecot-auth
dovecot 2212 0.0 0.7 33912 2216 ? S 19:04 0:00 pop3-login
dovecot 2213 0.0 0.7 33912 2216 ? S 19:04 0:00 pop3-login
dovecot 2214 0.0 0.7 33912 2216 ? S 19:04 0:00 pop3-login
dovecot 2215 0.0 0.7 33916 2232 ? S 19:04 0:00 imap-login
dovecot 2216 0.0 0.7 33916 2228 ? S 19:04 0:00 imap-login
dovecot 2217 0.0 0.7 33916 2228 ? S 19:04 0:00 imap-login
root 2313 0.0 0.2 10476 912 pts/0 R+ 19:06 0:00 ps aux

[root@server ~]# cat /proc/meminfo

MemTotal: 307200 kB
MemFree: 9208 kB
Cached: 297992 kB
Active: 320312 kB
Inactive: 633848 kB
Active(anon): 55992 kB
Inactive(anon): 2196 kB
Active(file): 264320 kB
Inactive(file): 631652 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 58188 kB
Shmem: 26132 kB
Slab: 39912 kB
SReclaimable: 32584 kB
SUnreclaim: 7328 kB

user_beancounters вставлю картинкой потому что уже лимит символов в сообщении.

http://radikal.ua/data/upload/ba193/04012/e99b1635c1.jpg

Перепробовал на всех шаблонах ОС из доступных.

Сервера используют виртуализацию OpenVZ.

Буду благодарен за любую помощь.

Mik Foxi
На сайте с 02.03.2011
Offline
1215
#1

на ноде не хватает реальной памяти, хостер слишком переоверселлил, берите вдс с полноценной виртуализацией. реальные 300 мб оперативки может хватить на много сайтов.

Антибот, антиспам, веб фаервол, защита от накрутки поведенческих: https://antibot.cloud/ (Зеркало: https://антибот.рф/ ) Форум на замену серчу: https://foxi.biz/
T
На сайте с 09.12.2011
Offline
55
tls
#2
Abdusalam:
[root@server ~]# free -m
total used free shared buffers cached
Mem: 300 9 290 0 0 9
-/+ buffers/cache: 0 300
Swap: 0 0 0
[root@server ~]# uname -a
Linux xxxx.xx 2.6.32-042stab079.6 #1 SMP Mon Aug 26 19:47:50 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@server ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)
На новой машине не хватает памяти для запуска всех сервисов, которые тянет за собой эта панель.

Какая панель, та же? Зачем ставить 64-х битную ось на 300Мб VPS? Если есть ненужные сервисы (почта, bind, ftp), то отключите их через chkconfig. И сравнивайте конфиги остального софта с 1-й VPS (apache и особенно mysql). И смотреть /var/log/messages.

UPD: Если это тоже VestaCP, то 300Мб для нее может быть мало. Можно попробовать поставить новый 32-х битный Centos, остановить все ненужные сервисы, кроме ssh и попробовать установить панель по-новой.

F
На сайте с 15.03.2010
Offline
92
#3

Оверселл пошел. Берите XEN или KVM виртуализацию.

Стабильные Vds, vps (http://vpsville.ru) сервера и IPv6 сети по отличным ценам.
P
На сайте с 08.03.2007
Offline
250
#4
freelsd:
Оверселл пошел. Берите XEN или KVM виртуализацию.

Оверсела нет. Просто не хватает памяти. Как писали, надо всё ненужное вычистить и параметры, например, nginx поправить. Можно панель грузить только на время установки.

Andreyka
На сайте с 19.02.2005
Offline
822
#5

Выключить веб-панель и рулить скриптами весты

Не стоит плодить сущности без необходимости

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий