Активно ест swap

D
На сайте с 26.12.2012
Offline
37
1268

Добрый день!

Уже 2 день мучаюсь с одной проблемой, на сервере развернут apache2+nginx + пару игровых серверов.

Спустя некоторое время работы показывает такую картину

Это еще мало 10,4 указывает в пиках постоянно держится 11,7 и меньше.

Узнал я какой процесс уходит в swap это апач, при убийстве апача нагрузка падает до 9,8 и держится на этом уровне. Понятия не имею почему апач уходит в swap, вроде на сервере всего достаточно ему

Ситуация очень напрягает. тк ночью вроде как нагрузка на mysql выдала в 1412% маловероятно что из-за этого конечно, но сам факт того, что горит красным меня очень пугает :)

Заранее спасибо!

p.s. После убийства apache2

p.s. еще одно что заметил, что если написать serivce apache2 restart выдаст ->

root@debian:~# service apache2 restart

[....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

(98)Address already in use: make_sock: could not bind to address [::]:81

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:81

no listening sockets available, shutting down

Unable to open logs

Action 'start' failed.

The Apache error log may have more information.

failed!

Если убить процесс killall -9 apache2 и запустить service apache2 start всё работает, но опять уходит в swap

lealhost
На сайте с 07.06.2014
Offline
136
#1

У вас SWAP отключен, ничего туда уходить не может.

Горит красным потому что его нет.

А почему Apache не убивает себя на 81 порту при рестарте, необходимо смотреть в логах.

T
На сайте с 09.12.2011
Offline
55
tls
#2
lealhost:
Горит красным потому что его нет.

Красным горит, потому что vmcom > vmlim. При этом реально свободно еще 10Gb памяти.

Andron_buton
На сайте с 19.07.2007
Offline
270
#3

http://linux.die.net/man/1/atop

If the committed virtual memory exceeds the limit ('vmcom' and 'vmlim' in the SWP-line), the SWP-line is colored due to overcommitting the system.
SWP
Swap occupation and overcommit info.
This line contains the total amount of swap space on disk ('tot') and the amount of free swap space ('free').
Furthermore the committed virtual memory space ('vmcom') and the maximum limit of the committed space ('vmlim', which is by default swap size plus 50% of memory size) is shown. The committed space is the reserved virtual space for all allocations of private memory space for processes. The kernel only verifies whether the committed space exceeds the limit if strict overcommit handling is configured (vm.overcommit_memory is 2).

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