Страница 1 из 2

Проблема с прокси-сервером

Добавлено: 2008-05-26 10:00:52
skry
Значит такая ситуация. Пользуюсь фряхой немного. Тоесть я ее вообще почти незнаю. Ну вообщем сделал сервак на squid+lightsquid. Настроил фаерволл. Все работает: статистика и обрубка прав. Проблема в том что сквид постоянно вылетает - просто перестает работать и приходиться перезагружать сервер. после чего все прекрассно работает. вылетает примерно раз в сутки. Вообще складываеться такое впечатление что ему нехватает оперативки(

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:07:11
Alex Keda
ну а оперативки сколько? =)))
==========
телепаты все уволились - надоело им тут...

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:20:10
dikens3
Как вылетает Squid, что в логах?

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:27:39
alex3
достал ты лис со своим

Код: Выделить всё

, все станут скриншоты выкладывать  :D

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:32:22
Alex Keda
ща поменяю на "юзайте ssh =)"

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:37:12
skry
вот что в логах

Код: Выделить всё

2008/05/20 08:54:16| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/05/20 08:54:16| Process ID 915
2008/05/20 08:54:16| With 1728 file descriptors available
2008/05/20 08:54:16| DNS Socket created at 0.0.0.0, port 50369, FD 5
2008/05/20 08:54:16| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/20 08:54:16| Unlinkd pipe opened on FD 10
2008/05/20 08:54:16| Swap maxSize 2097152 KB, estimated 161319 objects
2008/05/20 08:54:16| Target number of buckets: 8065
2008/05/20 08:54:16| Using 8192 Store buckets
2008/05/20 08:54:16| Max Mem  size: 131072 KB
2008/05/20 08:54:16| Max Swap size: 2097152 KB
2008/05/20 08:54:16| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/05/20 08:54:16| Using Least Load store dir selection
2008/05/20 08:54:16| Set Current Directory to /usr/local/squid/cache
2008/05/20 08:54:16| Loaded Icons.
2008/05/20 08:54:16| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/05/20 08:54:16| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/20 08:54:16| WCCP Disabled.
2008/05/20 08:54:16| Ready to serve requests.
2008/05/20 08:54:17| Store rebuilding is  2.3% complete
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000316
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000027
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000029
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 0000002A
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 0000002C
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 0000002D
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 0000002E
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000045
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000046
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00000047
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00003C0F
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00003C10
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00003CDD
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00003CDE
2008/05/20 08:54:21| WARNING: newer swaplog entry for dirno 0, fileno 00003CE6
2008/05/20 08:54:21| Done reading /usr/local/squid/cache swaplog (181751 entries)
2008/05/20 08:54:21| Finished rebuilding storage from disk.
2008/05/20 08:54:21|    150505 Entries scanned
2008/05/20 08:54:21|         0 Invalid entries.
2008/05/20 08:54:21|         0 With invalid flags.
2008/05/20 08:54:21|    136542 Objects loaded.
2008/05/20 08:54:21|         0 Objects expired.
2008/05/20 08:54:21|       312 Objects cancelled.
2008/05/20 08:54:21|      6206 Duplicate URLs purged.
2008/05/20 08:54:21|     13651 Swapfile clashes avoided.
2008/05/20 08:54:21|   Took 5.3 seconds (25821.4 objects/sec).
2008/05/20 08:54:21| Beginning Validation Procedure
2008/05/20 08:54:21|   Completed Validation Procedure
2008/05/20 08:54:21|   Validated 130336 Entries
2008/05/20 08:54:21|   store_swap_size = 2018096k
2008/05/20 08:54:22| storeLateRelease: released 0 objects
2008/05/20 09:56:36| WARNING: 1 swapin MD5 mismatches
2008/05/20 11:05:23| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:05:23| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:23:23| WARNING: 10 swapin MD5 mismatches
2008/05/20 11:47:54| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:47:54| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:47:57| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:47:57| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:47:59| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:47:59| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:50:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:50:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:53:06| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:53:06| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:53:06| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:53:06| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:53:06| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:53:06| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:53:06| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:53:06| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 11:53:06| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 11:53:06| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:14:43| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:14:43| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:14:43| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:14:43| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:14:43| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:14:43| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:15| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:15| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:15| Reserved FD adjusted from 100 to 1683 due to failures
2008/05/20 12:15:16| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/0000189E ((23) Too many open files in system)
2008/05/20 12:15:16| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/0000189F ((23) Too many open files in system)
2008/05/20 12:15:16| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:17| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/000018A2 ((23) Too many open files in system)
2008/05/20 12:15:17| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/000018A3 ((23) Too many open files in system)
2008/05/20 12:15:17| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:17| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:17| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/000018A7 ((23) Too many open files in system)
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/000018A8 ((23) Too many open files in system)
2008/05/20 12:15:18| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/000018A9 ((23) Too many open files in system)
2008/05/20 12:15:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:18| comm_accept: FD 12: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:18| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:18| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:18| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:18| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:18| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:18| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:18| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:18| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:18| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:18| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:18| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:19| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:19| comm_open: socket failure: (23) Too many open files in system
2008/05/20 12:15:19| WARNING: This machine has a serious shortage of filedescriptors.
2008/05/20 12:15:19| Reserved FD adjusted from 1683 to 1683 due to failures
2008/05/20 12:15:19| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:19| httpAccept: FD 12: accept failure: (23) Too many open files in system
2008/05/20 12:15:19| httpAccept: FD 12: accept failure: (23) Too many open files in system

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:55:46
dikens3
Логи говорят, что файлов в системе много открыто. Смотри максимально возможное число файлов:

Код: Выделить всё

# sysctl -a | grep files
kern.maxfiles: 32768
kern.maxfilesperproc: 30000
И реальное используемое системой:

Код: Выделить всё

# sysctl -a | grep openfiles
kern.openfiles: 7818

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 10:59:12
skry
И где мне нужно чтото подправить что бы оно работало? где ограничения эти ставяться? подскажите пожалуйста :?

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:03:22
skry
вот что мне выдала команда

Код: Выделить всё

# sysctl -a | grep files
kern.maxfiles: 1928
kern.maxfilesperproc: 1735
kern.openfiles: 132

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:27:09
dikens3
Многие параметры системы устанавливаются ядром и зависят от опции MAXUSERS при сборке. Вывод - пересобрать ядро указав maxusers побольше.
Также параметры sysctl можно изменить добавив в файл /etc/sysctl.conf нужные тебе настройки. У меня к примеру так:

Код: Выделить всё

security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
kern.ipc.somaxconn=1024
kern.maxfiles=32768
kern.maxfilesperproc=30000
есть ещё такая команда, может помочь:

Код: Выделить всё

# vmstat -m | grep file
grep убери и увидишь все опции.

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:28:24
Alex Keda
максюзерс мона без персборки - надо чё-то в лоадере указать...

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:35:26
dikens3
lissyara писал(а):максюзерс мона без персборки - надо чё-то в лоадере указать...
Ага. В /boot/loader.conf добавить kern.maxusers="512" или нужное.

А посмотреть можно так:

Код: Выделить всё

# sysctl -a | grep users
kern.maxusers: 512

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:55:39
skry
Увеличл значения но почему то kern.maxfilesperproc не удаеться поставить больше. посмотрим сколько проживет с такими параметрами. количество пользователей поставил 512.

Код: Выделить всё

# sysctl -a | grep files
kern.maxfiles: 12000
kern.maxfilesperproc: 4584
kern.openfiles: 116

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 11:57:16
skry
всем спасибо за помощь :P

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-26 12:23:04
vintovkin
lissyara писал(а):
телепаты все уволились - надоело им тут...
нифига, время нема даже на форуме посидеть, начальство зае****ло по полной программе =)

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 9:18:54
skry
Что то ничего не помогло. Сервак все равно на следующий день перестал работать. Количество открытых файлов не превышает допустимого. Кто что может еще подсказать?

Код: Выделить всё

# sysctl -a | grep files
kern.maxfiles: 12000
kern.maxfilesperproc: 4584
kern.openfiles: 116

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 9:24:21
dikens3
Тогда описывай проблему:
Вылетает только squid? Остальные сервисы работают как ни в чём небывало? (Кстати у меня squid вылетал когда сетевой провод вынимал из сетевухи, у тебя с этим всё нормально?) Что теперь в логах squid? Системы? И ещё, проверь Жёсткий диск на бэд блоки.

Можно временный костыль сделать:
http://www.lissyara.su/?id=1268

тут почитаешь и настроишь автоматический перезапуск squid. Если поможет, тогда будем гадать почему падает squid. Возможно просто его нужно пересобрать или ещё что-то.

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 9:56:42
skry
а какие еще сервисы? У меня там всего стоит то Apahe, squid, lightsquid. Сквид падает и зайти статистику глянуть неудаеться уже. По поводу сетевого кабеля то все работает - презагружаю сервер же удаленно и он начинает работать.По поводу логов системы то где они лежат и как файлик называеться? :oops: Вот что в логах сквида:

Код: Выделить всё

2008/05/26 09:18:16| comm_accept: FD 12: (53) Software caused connection abort
2008/05/26 09:18:16| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/26 09:31:40| comm_accept: FD 12: (53) Software caused connection abort
2008/05/26 09:31:40| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/26 09:31:40| comm_accept: FD 12: (53) Software caused connection abort
2008/05/26 09:31:40| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/26 09:55:55| Preparing for shutdown after 15270 requests
2008/05/26 09:55:55| Waiting 30 seconds for active connections to finish
2008/05/26 09:55:55| FD 12 Closing HTTP connection
2008/05/26 09:56:46| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/05/26 09:56:46| Process ID 774
2008/05/26 09:56:46| With 1728 file descriptors available
2008/05/26 09:56:46| DNS Socket created at 0.0.0.0, port 60773, FD 5
2008/05/26 09:56:46| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/26 09:56:46| Unlinkd pipe opened on FD 10
2008/05/26 09:56:46| Swap maxSize 2097152 KB, estimated 161319 objects
2008/05/26 09:56:46| Target number of buckets: 8065
2008/05/26 09:56:46| Using 8192 Store buckets
2008/05/26 09:56:46| Max Mem  size: 131072 KB
2008/05/26 09:56:46| Max Swap size: 2097152 KB
2008/05/26 09:56:46| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/05/26 09:56:46| Using Least Load store dir selection
2008/05/26 09:56:46| Set Current Directory to /usr/local/squid/cache
2008/05/26 09:56:46| Loaded Icons.
2008/05/26 09:56:46| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/05/26 09:56:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/26 09:56:46| WCCP Disabled.
2008/05/26 09:56:46| Ready to serve requests.
2008/05/26 09:56:49| Store rebuilding is  3.0% complete
2008/05/26 09:56:52| Done reading /usr/local/squid/cache swaplog (136839 entries)
2008/05/26 09:56:52| Finished rebuilding storage from disk.
2008/05/26 09:56:52|    125534 Entries scanned
2008/05/26 09:56:52|         0 Invalid entries.
2008/05/26 09:56:52|         0 With invalid flags.
2008/05/26 09:56:52|    125225 Objects loaded.
2008/05/26 09:56:52|         0 Objects expired.
2008/05/26 09:56:52|       223 Objects cancelled.
2008/05/26 09:56:52|       399 Duplicate URLs purged.
2008/05/26 09:56:52|        85 Swapfile clashes avoided.
2008/05/26 09:56:52|   Took 5.9 seconds (21174.1 objects/sec).
2008/05/26 09:56:52| Beginning Validation Procedure
2008/05/26 09:56:52|   Completed Validation Procedure
2008/05/26 09:56:52|   Validated 124826 Entries
2008/05/26 09:56:52|   store_swap_size = 2022914k
2008/05/26 09:56:52| storeLateRelease: released 0 objects
2008/05/26 10:32:35| Preparing for shutdown after 2701 requests
2008/05/26 10:32:35| Waiting 30 seconds for active connections to finish
2008/05/26 10:32:35| FD 12 Closing HTTP connection
2008/05/26 10:32:37| Shutting down...
2008/05/26 10:32:37| FD 13 Closing ICP connection
2008/05/26 10:32:37| Closing unlinkd pipe on FD 10
2008/05/26 10:32:37| storeDirWriteCleanLogs: Starting...
2008/05/26 10:32:37|     65536 entries written so far.
2008/05/26 10:32:38|   Finished.  Wrote 113455 entries.
2008/05/26 10:32:38|   Took 0.7 seconds (156559.2 entries/sec).
CPU Usage: 22.645 seconds = 9.673 user + 12.971 sys
Maximum Resident Size: 71132 KB
Page faults with physical i/o: 39
2008/05/26 10:32:38| Squid Cache (Version 2.5.STABLE14): Exiting normally.
2008/05/26 10:33:46| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/05/26 10:33:46| Process ID 775
2008/05/26 10:33:46| With 1728 file descriptors available
2008/05/26 10:33:46| DNS Socket created at 0.0.0.0, port 60773, FD 5
2008/05/26 10:33:46| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/26 10:33:46| Unlinkd pipe opened on FD 10
2008/05/26 10:33:46| Swap maxSize 2097152 KB, estimated 161319 objects
2008/05/26 10:33:46| Target number of buckets: 8065
2008/05/26 10:33:46| Using 8192 Store buckets
2008/05/26 10:33:46| Max Mem  size: 131072 KB
2008/05/26 10:33:46| Max Swap size: 2097152 KB
2008/05/26 10:33:46| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2008/05/26 10:33:46| Using Least Load store dir selection
2008/05/26 10:33:46| Set Current Directory to /usr/local/squid/cache
2008/05/26 10:33:46| Loaded Icons.
2008/05/26 10:33:46| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/05/26 10:33:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/26 10:33:46| WCCP Disabled.
2008/05/26 10:33:46| Ready to serve requests.
2008/05/26 10:33:49| Store rebuilding is  3.6% complete
2008/05/26 10:33:51| Done reading /usr/local/squid/cache swaplog (113455 entries)
2008/05/26 10:33:51| Finished rebuilding storage from disk.
2008/05/26 10:33:51|    113455 Entries scanned
2008/05/26 10:33:51|         0 Invalid entries.
2008/05/26 10:33:51|         0 With invalid flags.
2008/05/26 10:33:51|    113455 Objects loaded.
2008/05/26 10:33:51|         0 Objects expired.
2008/05/26 10:33:51|         0 Objects cancelled.
2008/05/26 10:33:51|         0 Duplicate URLs purged.
2008/05/26 10:33:51|         0 Swapfile clashes avoided.
2008/05/26 10:33:51|   Took 5.4 seconds (20869.1 objects/sec).
2008/05/26 10:33:51| Beginning Validation Procedure
2008/05/26 10:33:51|   Completed Validation Procedure
2008/05/26 10:33:51|   Validated 113455 Entries
2008/05/26 10:33:51|   store_swap_size = 1887428k
2008/05/26 10:33:52| storeLateRelease: released 0 objects
2008/05/26 11:02:57| Reconfiguring Squid Cache (version 2.5.STABLE14)...
2008/05/26 11:02:57| FD 12 Closing HTTP connection
2008/05/26 11:02:57| FD 13 Closing ICP connection
2008/05/26 11:02:57| Cache dir '/usr/local/squid/cache' size remains unchanged at 2097152 KB
2008/05/26 11:02:57| aclParseAclLine: WARNING: empty ACL: acl     limited_IP     src            "/usr/local/my_doc_smb/squid/limited_IP.conf"
2008/05/26 11:02:57| DNS Socket created at 0.0.0.0, port 54870, FD 8
2008/05/26 11:02:57| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/26 11:02:57| Accepting HTTP connections at 0.0.0.0, port 3128, FD 9.
2008/05/26 11:02:57| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2008/05/26 11:02:57| WCCP Disabled.
2008/05/26 11:02:57| Loaded Icons.
2008/05/26 11:02:57| eventCleanup
2008/05/26 11:02:57| Ready to serve requests.
2008/05/26 11:04:24| WARNING: 1 swapin MD5 mismatches
2008/05/26 11:38:21| Preparing for shutdown after 3233 requests
2008/05/26 11:38:21| Waiting 30 seconds for active connections to finish
2008/05/26 11:38:21| FD 9 Closing HTTP connection
2008/05/26 11:39:59| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/05/26 11:39:59| Process ID 783
2008/05/26 11:39:59| With 1728 file descriptors available
2008/05/26 11:39:59| DNS Socket created at 0.0.0.0, port 60773, FD 5
2008/05/26 11:39:59| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/26 11:39:59| Unlinkd pipe opened on FD 10
2008/05/26 11:39:59| Swap maxSize 2097152 KB, estimated 161319 objects
2008/05/26 11:39:59| Target number of buckets: 8065
2008/05/26 11:39:59| Using 8192 Store buckets
2008/05/26 11:39:59| Max Mem  size: 131072 KB
2008/05/26 11:39:59| Max Swap size: 2097152 KB
2008/05/26 11:39:59| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/05/26 11:39:59| Using Least Load store dir selection
2008/05/26 11:39:59| Set Current Directory to /usr/local/squid/cache
2008/05/26 11:39:59| Loaded Icons.
2008/05/26 11:39:59| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/05/26 11:39:59| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/26 11:39:59| WCCP Disabled.
2008/05/26 11:39:59| Ready to serve requests.
2008/05/26 11:40:01| Store rebuilding is  3.6% complete
2008/05/26 11:40:04| Done reading /usr/local/squid/cache swaplog (115243 entries)
2008/05/26 11:40:04| Finished rebuilding storage from disk.
2008/05/26 11:40:04|    114226 Entries scanned
2008/05/26 11:40:04|         0 Invalid entries.
2008/05/26 11:40:04|         0 With invalid flags.
2008/05/26 11:40:04|    113986 Objects loaded.
2008/05/26 11:40:04|         0 Objects expired.
2008/05/26 11:40:04|       240 Objects cancelled.
2008/05/26 11:40:04|        30 Duplicate URLs purged.
2008/05/26 11:40:04|         0 Swapfile clashes avoided.
2008/05/26 11:40:04|   Took 5.3 seconds (21408.5 objects/sec).
2008/05/26 11:40:04| Beginning Validation Procedure
2008/05/26 11:40:04|   Completed Validation Procedure
2008/05/26 11:40:04|   Validated 113956 Entries
2008/05/26 11:40:04|   store_swap_size = 1892568k
2008/05/26 11:40:05| storeLateRelease: released 0 objects
2008/05/26 12:45:51| comm_accept: FD 12: (53) Software caused connection abort
2008/05/26 12:45:51| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/26 13:15:02| WARNING: 1 swapin MD5 mismatches
2008/05/26 16:35:55| comm_accept: FD 12: (53) Software caused connection abort
2008/05/26 16:35:55| httpAccept: FD 12: accept failure: (53) Software caused connection abort
2008/05/27 09:11:08| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/05/27 09:11:08| Process ID 784
2008/05/27 09:11:08| With 1728 file descriptors available
2008/05/27 09:11:08| DNS Socket created at 0.0.0.0, port 60773, FD 5
2008/05/27 09:11:08| Adding nameserver 192.168.0.100 from /etc/resolv.conf
2008/05/27 09:11:08| Unlinkd pipe opened on FD 10
2008/05/27 09:11:08| Swap maxSize 2097152 KB, estimated 161319 objects
2008/05/27 09:11:08| Target number of buckets: 8065
2008/05/27 09:11:08| Using 8192 Store buckets
2008/05/27 09:11:08| Max Mem  size: 131072 KB
2008/05/27 09:11:08| Max Swap size: 2097152 KB
2008/05/27 09:11:08| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/05/27 09:11:08| Using Least Load store dir selection
2008/05/27 09:11:08| Set Current Directory to /usr/local/squid/cache
2008/05/27 09:11:08| Loaded Icons.
2008/05/27 09:11:08| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/05/27 09:11:08| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/05/27 09:11:08| WCCP Disabled.
2008/05/27 09:11:08| Ready to serve requests.
2008/05/27 09:11:11| Store rebuilding is  2.9% complete
2008/05/27 09:11:14| WARNING: newer swaplog entry for dirno 0, fileno 000058FB
2008/05/27 09:11:14| Done reading /usr/local/squid/cache swaplog (139724 entries)
2008/05/27 09:11:14| Finished rebuilding storage from disk.
2008/05/27 09:11:14|    126427 Entries scanned
2008/05/27 09:11:14|         0 Invalid entries.
2008/05/27 09:11:14|         0 With invalid flags.
2008/05/27 09:11:14|    125752 Objects loaded.
2008/05/27 09:11:14|         0 Objects expired.
2008/05/27 09:11:14|       538 Objects cancelled.
2008/05/27 09:11:14|       478 Duplicate URLs purged.
2008/05/27 09:11:14|       107 Swapfile clashes avoided.
2008/05/27 09:11:14|   Took 6.0 seconds (20987.3 objects/sec).
2008/05/27 09:11:14| Beginning Validation Procedure
2008/05/27 09:11:14|   Completed Validation Procedure
2008/05/27 09:11:14|   Validated 125292 Entries
2008/05/27 09:11:14|   store_swap_size = 2041730k
2008/05/27 09:11:15| storeLateRelease: released 0 objects

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 10:19:00
dikens3
1. Прибей весь Кэш и создай заново (squid -z)
2. Обрати внимание на выделенное (Этой мой squid при запуске):
2008/05/27 11:15:48| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd5.5...
2008/05/27 11:15:48| Process ID 32025
2008/05/27 11:15:48| With 32768 file descriptors available
2008/05/27 11:15:48| DNS Socket created at 0.0.0.0, port 54123, FD 5
2008/05/27 11:15:48| Adding nameserver 192.168.2.1 from /etc/resolv.conf
2008/05/27 11:15:48| Unlinkd pipe opened on FD 10
2008/05/27 11:15:48| Swap maxSize 3072000 KB, estimated 236307 objects
2008/05/27 11:15:48| Target number of buckets: 11815
2008/05/27 11:15:48| Using 16384 Store buckets
2008/05/27 11:15:48| Max Mem size: 65536 KB
2008/05/27 11:15:48| Max Swap size: 3072000 KB
2008/05/27 11:15:48| Store logging disabled
2008/05/27 11:15:48| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2008/05/27 11:15:48| Using Least Load store dir selection
2008/05/27 11:15:48| Set Current Directory to /usr/local/squid/cache
2008/05/27 11:15:48| Loaded Icons.
2008/05/27 11:15:48| Accepting HTTP connections at 127.0.0.1, port 3128, FD 11.
2008/05/27 11:15:48| WCCP Disabled.
2008/05/27 11:15:48| Ready to serve requests.
2008/05/27 11:15:49| Store rebuilding is 1.5% complete
2008/05/27 11:15:57| Done reading /usr/local/squid/cache swaplog (275040 entries)
2008/05/27 11:15:57| Finished rebuilding storage from disk.
2008/05/27 11:15:57| 275040 Entries scanned
2008/05/27 11:15:57| 0 Invalid entries.
2008/05/27 11:15:57| 0 With invalid flags.
2008/05/27 11:15:57| 275002 Objects loaded.
2008/05/27 11:15:57| 0 Objects expired.
2008/05/27 11:15:57| 0 Objects cancelled.
2008/05/27 11:15:57| 29 Duplicate URLs purged.
2008/05/27 11:15:57| 9 Swapfile clashes avoided.
2008/05/27 11:15:57| Took 9.1 seconds (30293.4 objects/sec).
2008/05/27 11:15:57| Beginning Validation Procedure
2008/05/27 11:15:58| 262144 Entries Validated so far.
2008/05/27 11:15:58| Completed Validation Procedure
2008/05/27 11:15:58| Validated 275002 Entries
2008/05/27 11:15:58| store_swap_size = 2764554k
2008/05/27 11:15:58| storeLateRelease: released 1 objects

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 10:21:05
skry
Он неубеваем))) уже 180 мб кеша. Пишу команду но он говорит только что сквид уже запущен и все. файл как был так и остался

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 10:27:13
dikens3
1. Останови squid
2. Удали всё, что находится в директории /usr/local/squid/cache
3. Создай структуру заново (squid -z)
4. Запусти squid

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 10:53:29
skry
вроде как очистил кеш. ниче нового не появилось.

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 10:57:31
skry
что означают эти выдиления в твоем логе?:
2008/05/27 11:15:48| With 32768 file descriptors available
2008/05/27 11:15:48| Rebuilding storage in /usr/local/squid/cache (CLEAN)

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 12:39:26
manefesto
skry писал(а):что означают эти выдиления в твоем логе?:
2008/05/27 11:15:48| With 32768 file descriptors available
2008/05/27 11:15:48| Rebuilding storage in /usr/local/squid/cache (CLEAN)
количество дескрипторов исчерпано для процесса

Re: Проблема с прокси-сервером(((

Добавлено: 2008-05-27 12:56:54
dikens3
skry писал(а):что означают эти выдиления в твоем логе?:
2008/05/27 11:15:48| With 32768 file descriptors available
В твоём верхнем логе я увидел это:
2008/05/20 12:15:17| WARNING: This machine has a serious shortage of filedescriptors.
..
..
008/05/20 12:15:16| storeUfsCreate: Failed to create /usr/local/squid/cache/00/18/0000189E ((23) Too many open files in system)
Вот и выделил, чтобы ты обратил внимание.


У меня запуск SQUID выглядит так:

Код: Выделить всё

2008/05/27 11:15:48| Rebuilding storage in /usr/local/squid/cache (CLEAN)
У тебя так:

Код: Выделить всё

2008/05/20 08:54:16| Rebuilding storage in /usr/local/squid/cache (DIRTY)
Найди 5 отличий?