Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam,
mam wielki problem ze Squidem (wersja z repo Debiana - SQUID 2.6 STABLE5).. niby chodzi i np. onet ładuje się normalnie ale przy wp jak już się załaduje to trzeba z ok. 5 minut od czekać próbowałem już różnych zmian w konfigu... latałem po google i nic:( Próbowałem nawet Squid'a3 instalować ale to samo się dzieje... Czy ktoś mógł by mnie chociaż naprowadzić co może powodować taki stan rzeczy???
Z góry dzięki :)
Ostatnio edytowany przez marcinosr (2008-09-10 20:09:22)
Offline
Pokaż logi ze squida i plik squid.conf
Offline
http_port 3128 icp_port 0 #hierarchy_stoplist .php? .php3? .cgi? #acl QUERY urlpath_regex cgi-bin \? #cache deny QUERY cache_mem 256 MB cache_swap_low 60 cache_swap_high 75 maximum_object_size 4096 KB minimum_object_size 1 KB maximum_object_size_in_memory 1 MB fqdncache_size 0 cache_replacement_policy heap LFUDA memory_replacement_policy heap GDSF cache_dir ufs /var/spool/squid/ 8144 12 256 access_log none cache_log /var/log/squid/cache.log cache_store_log none dns_nameservers 192.168.2.2 refresh_pattern . 0 40% 4320 half_closed_clients on acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl Lan src 192.168.2.0/255.255.255.0 acl purge method PURGE acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access allow SSL_ports http_access allow CONNECT all http_access allow localhost http_access allow Lan http_access deny all http_reply_access allow all httpd_suppress_version_string on visible_hostname localhost memory_pools on memory_pools_limit 50 MB forwarded_for on reload_into_ims on coredump_dir /var/spool/squid ie_refresh on
Tak wygląda w tej chwili squid.conf a co do logów to mam w tej chwili tylko cache.log i to nie duży :) gdzieś wyczytałem na stronach by wyłączyć logi że to przyśpiesza prace squida i nie pomyślałem by włączyć ponownie:)
Ostatnio edytowany przez marcinosr (2008-09-11 08:34:20)
Offline
Włącz logi zrestartuj squida i wejdz na onet a pozniej na wp... i pokaż cache.log
Offline
2008/09/11 13:55:43| Preparing for shutdown after 63589 requests 2008/09/11 13:55:43| Waiting 30 seconds for active connections to finish 2008/09/11 13:55:43| FD 11 Closing HTTP connection 2008/09/11 13:55:43| Shutting down... 2008/09/11 13:55:43| Closing unlinkd pipe on FD 10 2008/09/11 13:55:43| storeDirWriteCleanLogs: Starting... 2008/09/11 13:55:43| Finished. Wrote 12515 entries. 2008/09/11 13:55:43| Took 0.0 seconds (358124.0 entries/sec). CPU Usage: 71.548 seconds = 44.467 user + 27.082 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): total space in arena: 159508 KB Ordinary blocks: 159234 KB 8011 blks Small blocks: 0 KB 0 blks Holding blocks: 628 KB 3 blks Free Small blocks: 0 KB Free Ordinary blocks: 273 KB Total in use: 159862 KB 100% Total free: 273 KB 0% 2008/09/11 13:55:43| Squid Cache (Version 2.6.STABLE5): Exiting normally. 2008/09/11 13:55:47| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2008/09/11 13:55:47| Process ID 14672 2008/09/11 13:55:47| With 1024 file descriptors available 2008/09/11 13:55:47| Using epoll for the IO loop 2008/09/11 13:55:47| DNS Socket created at 0.0.0.0, port 36650, FD 6 2008/09/11 13:55:47| Adding nameserver 192.168.2.2 from squid.conf 2008/09/11 13:55:47| User-Agent logging is disabled. 2008/09/11 13:55:47| Referer logging is disabled. 2008/09/11 13:55:47| Unlinkd pipe opened on FD 11 2008/09/11 13:55:47| Swap maxSize 8339456 KB, estimated 641496 objects 2008/09/11 13:55:47| Target number of buckets: 32074 2008/09/11 13:55:47| Using 32768 Store buckets 2008/09/11 13:55:47| Max Mem size: 262144 KB 2008/09/11 13:55:47| Max Swap size: 8339456 KB 2008/09/11 13:55:47| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2008/09/11 13:55:47| Rebuilding storage in /var/spool/squid/ (CLEAN) 2008/09/11 13:55:47| Using Least Load store dir selection 2008/09/11 13:55:47| Set Current Directory to /var/spool/squid 2008/09/11 13:55:47| Loaded Icons. 2008/09/11 13:55:47| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 13. 2008/09/11 13:55:47| HTCP Disabled. 2008/09/11 13:55:47| WCCP Disabled. 2008/09/11 13:55:47| Ready to serve requests. 2008/09/11 13:55:47| Store rebuilding is 32.7% complete 2008/09/11 13:55:47| Done reading /var/spool/squid/ swaplog (12515 entries) 2008/09/11 13:55:47| Finished rebuilding storage from disk. 2008/09/11 13:55:47| 12515 Entries scanned 2008/09/11 13:55:47| 0 Invalid entries. 2008/09/11 13:55:47| 0 With invalid flags. 2008/09/11 13:55:47| 12515 Objects loaded. 2008/09/11 13:55:47| 0 Objects expired. 2008/09/11 13:55:47| 0 Objects cancelled. 2008/09/11 13:55:47| 0 Duplicate URLs purged. 2008/09/11 13:55:47| 0 Swapfile clashes avoided. 2008/09/11 13:55:47| Took 0.4 seconds (28715.1 objects/sec). 2008/09/11 13:55:47| Beginning Validation Procedure 2008/09/11 13:55:47| Completed Validation Procedure 2008/09/11 13:55:47| Validated 12515 Entries 2008/09/11 13:55:47| store_swap_size = 182328k 2008/09/11 13:55:48| storeLateRelease: released 0 objects
Offline
w squid.conf zmień tą linijkę:
http_port ip_squida:3128
Kiedyś tutaj zamieściłem bardzo krótkie howto do squida - poczytaj, może Ci się przyda...
Ostatnio edytowany przez kayo (2008-09-12 09:09:39)
Offline
Ok spróbuje w poniedziałek.... Poczytam jeszcze te twoje howto może coś tam znajdę.... chociaż już tyle konfiguracji sprawdzałem że zacząłem się zastanawiać czy przypadkiem pakiet squid'a z repo nie jest uszkodzony... spróbuje jeszcze skompilować ze źródeł
Offline
Uzyj stabilnej wersji squid2.6STABLE5
Offline
Właśnie taka jest w repo... i takiej używam.. myślałem na skompilowaniu wersji 2.6STABLE16 ew. wyżej (chyba 21 jest ostatnia)
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00128 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.190.219.178' WHERE u.id=1 |
0.00063 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.190.219.178', 1732531836) |
0.00045 | SELECT * FROM punbb_online WHERE logged<1732531536 |
0.00051 | SELECT topic_id FROM punbb_posts WHERE id=99024 |
0.00006 | SELECT id FROM punbb_posts WHERE topic_id=12265 ORDER BY posted |
0.00055 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=12265 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00194 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=12265 ORDER BY p.id LIMIT 0,25 |
0.00082 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=12265 |
Total query time: 0.00648 s |