Search squid archive

Re: Fine tuning of Squid and OS configuration for handling more loads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

cache.log file is attached with contents narrowed down to the time just before squid process oscillating (going up and down), ultimately dying.


Regards,

Vishnu


On 08-04-2022 19:09, Alex Rousskov wrote:
On 4/8/22 05:56, pvs wrote:

> sudo /usr/squid/5.2/sbin/squid -f /etc/squid/squid.conf

Next time, try starting Squid from the console/terminal using the following command:

    sudo /usr/squid/5.2/sbin/squid -Nd1 -f /etc/squid/squid.conf

This is _not_ the right way to start Squid in production, but it is a good way to test whether you can get some error messages on the console after Squid dies during this _test_ run.


> I wanted to share cache.log file, but the size is too big.

You can always share a link to a (compressed) log file or at least copy-paste the last ~100 lines written just _before Squid exited_. The exiting lines, if any, would be printed above the Squid startup lines similar to these:

> 2022/04/07 18:43:38.457| Created PID file (.../squid.pid)
> 2022/04/07 18:43:38.459| Set Current Directory to /usr/local/squid/var
> 2022/04/07 18:43:38.459| Starting Squid Cache version ...

The other information you have provided was useful but not sufficient.


Please keep this conversation on the squid-users list instead of responding to me personally.


Thank you,

Alex.


> On 07-04-2022 19:09, Alex Rousskov wrote:
>> On 4/7/22 00:15, pvs wrote:
>>
>>> On the 3rd day morning all of a sudden squid process stopped, after
>>> restarting it worked 10 minutes and again stopped, this process
>>> repeated and finally we removed this squid from production network.
>>
>>> We tried to analyze the syslog file, squid access/cache log files,
>>> not got any concrete clues.
>>>
>>> Any clues/ideas where i can look for additional info for the squid
>>> process all of a sudden dying.
>>
>> How do you start Squid?
>>
>> How many "sbin/squid" or equivalent processes are running when
>> everything is working OK?
>>
>> You may want to share "ps aux | fgrep squid" or similar output after
>> starting Squid the usual way.
>>
>>
>> If Squid knows that it is dying, then cache.log usually has a record
>> of the cause of death. Squid will often known that it is dying, but
>> there are exceptions. Squid will know less if you start it with a -C
>> command line option.
>>
>> If Squid does not know that it is dying, then whatever scripts/system
>> you used to start Squid may have a record of it. Usually, those
>> messages go into syslog.
>>
>> I know you said you looked in cache.log and syslog, but perhaps there
>> are some clues there that you consider unimportant. If anything is
>> logged at the time of death, consider sharing those records.
>>
>>
>> If there are really no traces anywhere, then you are doing something
>> very unusual, but you should still be able to triage the issue if you
>> start Squid by hand from the terminal (add "-d1" if you are not using
>> that option already) and watch the console output at the time of
>> death. You will also be able to collect the exit code of the top-level
>> squid process this way -- another potential clue.
>>
>>
>> HTH,
>>
>> Alex.
>
> --
> Regards,
>
> पं. विष्णु शंकर        P. Vishnu Sankar
> टीम लीडर                Team Leader-Network Operations
> सी-डॉट                  C-DOT
> इलैक्ट्रॉनिक्स सिटी फेज़ I    Electronics City Phase I
> होसूर रोड बेंगलूरु          Hosur Road Bengaluru – 560100
> फोन  Ph                91 80 25119466
> ------------------------------------------------------

--
Regards,

पं. विष्णु शंकर		P. Vishnu Sankar
टीम लीडर                Team Leader-Network Operations
सी-डॉट                  C-DOT
इलैक्ट्रॉनिक्स सिटी फेज़ I    Electronics City Phase I
होसूर रोड बेंगलूरु          Hosur Road Bengaluru – 560100
फोन  Ph                91 80 25119466
------------------------------------------------------
Disclaimer :
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
The sender does not accept liability for any errors or omissions in the contents of this message, which arise as a result.

Attachment: cache-log.rar
Description: Binary data

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux