The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"проблемы с http сервером"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"проблемы с http сервером" 
Сообщение от rm Искать по авторуВ закладки(??) on 10-Ноя-05, 12:49  (MSK)
сервер на freebsd 4.10
расположен высокопосещаемый ресурс.
Apache/1.3.31 (Unix) mod_jk/1.2.5 PHP/4.3.7 mod_ssl/2.8.18 OpenSSL/0.9.7d
Max Requests  Per Child: 10 - Keep Alive: on - Max Per Connection: 1000  
Timeouts  Connection: 300 - Keep-Alive: 15  
MaxClients 500

Проблема! Сервер примерно раз в сутки(иногда чаще)перестает отвечать - не работают сайты, не зайти по ssh. При этом сам сервер пингуется. Проблема точно не с железом. Свап на сервере почти не используется (несколько килобайт)
В messages ничего нет. В логах http-errors:

[Wed Nov  9 13:03:57 2005] [error] [client 212.34.60.2] File does not exist: /work/users/site.ru/public_html/_vti_bin/owssvr.dll
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
.......
httpd in free(): warning: page is already free
httpd in free(): warning: chunk is already free
httpd in free(): warning: page is already free
httpd in free(): warning: recursive call
httpd in free(): warning: recursive call
httpd in free(): warning: recursive call
....
огромная куча

httpd in free(): warning: recursive call

....
httpd in malloc(): warning: recursive call
httpd in malloc(): warning: recursive call
FATAL:  emalloc():  Unable to allocate 10 bytes
[Wed Nov  9 13:14:25 2005] [notice] child pid 9652 exit signal Segmentation fault (11)
httpd in free(): warning: recursive call
httpd in free(): warning: recursive call
httpd in free(): warning: recursive call
httpd in free(): warning: page is already free
httpd in malloc(): warning: recursive call
httpd in free(): warning: page is already free
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
httpd in malloc(): warning: recursive call
httpd in malloc(): warning: recursive call
httpd in malloc(): warning: recursive call
FATAL:  emalloc():  Unable to allocate 10 bytes
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
[Wed Nov  9 13:28:19 2005] [error] server reached MaxClients setting, consider raising the MaxClients setting
Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)


Что с этим делать? Перерыл гугль - ничего толком не нашел. Возможно, кто-то специально вешает сервер? Помогите советом плз!

  Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]

1. "проблемы с http сервером" 
Сообщение от zedi emailИскать по авторуВ закладки(??) on 10-Ноя-05, 16:33  (MSK)
>сервер на freebsd 4.10
>расположен высокопосещаемый ресурс.
>Apache/1.3.31 (Unix) mod_jk/1.2.5 PHP/4.3.7 mod_ssl/2.8.18 OpenSSL/0.9.7d
>Max Requests  Per Child: 10 - Keep Alive: on - Max
>Per Connection: 1000
>Timeouts  Connection: 300 - Keep-Alive: 15
>MaxClients 500
>
>Проблема! Сервер примерно раз в сутки(иногда чаще)перестает отвечать - не работают сайты,
>не зайти по ssh. При этом сам сервер пингуется. Проблема точно
>не с железом. Свап на сервере почти не используется (несколько килобайт)
>
>В messages ничего нет. В логах http-errors:
>
>[Wed Nov  9 13:03:57 2005] [error] [client 212.34.60.2] File does not
>exist: /work/users/site.ru/public_html/_vti_bin/owssvr.dll
>httpd in free(): warning: page is already free
>httpd in free(): warning: page is already free
>httpd in free(): warning: page is already free
>httpd in free(): warning: page is already free
>.......
>httpd in free(): warning: page is already free
>httpd in free(): warning: chunk is already free
>httpd in free(): warning: page is already free
>httpd in free(): warning: recursive call
>httpd in free(): warning: recursive call
>httpd in free(): warning: recursive call
>....
>огромная куча
>
>httpd in free(): warning: recursive call
>
>....
>httpd in malloc(): warning: recursive call
>httpd in malloc(): warning: recursive call
>FATAL:  emalloc():  Unable to allocate 10 bytes
>[Wed Nov  9 13:14:25 2005] [notice] child pid 9652 exit signal
>Segmentation fault (11)
>httpd in free(): warning: recursive call
>httpd in free(): warning: recursive call
>httpd in free(): warning: recursive call
>httpd in free(): warning: page is already free
>httpd in malloc(): warning: recursive call
>httpd in free(): warning: page is already free
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>httpd in malloc(): warning: recursive call
>httpd in malloc(): warning: recursive call
>httpd in malloc(): warning: recursive call
>FATAL:  emalloc():  Unable to allocate 10 bytes
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>httpd in free(): warning: page is already free
>httpd in free(): warning: page is already free
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>[Wed Nov  9 13:28:19 2005] [error] server reached MaxClients setting, consider
>raising the MaxClients setting
>Allowed memory size of 16777216 bytes exhausted (tried to allocate 10 bytes)
>
>
>
>Что с этим делать? Перерыл гугль - ничего толком не нашел. Возможно,
>кто-то специально вешает сервер? Помогите советом плз!


Для начало ограничть доступ к 80, 443 порту с одного IP адресса на 3 соединения.К апаче подцепи модуль на opennet.ru есть найдешь dos_sentive
или что то вроде этого. Обезательно пересобери Апачь. И настрой PHP для каждого хостинга персонально к примеру:
    php_admin_value upload_max_filesize 2M
    php_admin_value memory_limit 128M
    php_admin_value max_execution_time 10

Так же командой netstat -m отследи количество памяти и сетевых буфферов испоьзованых в момент зависа. Потом возьми биту и разбей сервер в дребезги, с такими знаниями он тебе больше не понадобится...

  Удалить Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх


Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру