Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 57820 invoked from network); 25 Aug 2006 07:37:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 07:37:53 -0000 Received: (qmail 65235 invoked by uid 500); 25 Aug 2006 07:37:45 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 64931 invoked by uid 500); 25 Aug 2006 07:37:44 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 64919 invoked by uid 99); 25 Aug 2006 07:37:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 00:37:44 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chidanand.gangur@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 00:37:43 -0700 Received: by py-out-1112.google.com with SMTP id 39so956287pyu for ; Fri, 25 Aug 2006 00:37:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=WX1M2P7M54npANe3yGPLDkC8a7Q4GuBsAZilPYRJi7fKSsyfqPMjyK6FUcl4woxsayV6Ov8yTNOzNtZJQHaWOB2x5fPquSPNXcmIPdR/Bf9E1SqWlswc7NbB85/PmIzrnP4zTP5HQW0pqD3Tfv/Qu6UkGA+q3QlfcFOlaNt/QeY= Received: by 10.35.77.1 with SMTP id e1mr4425715pyl; Fri, 25 Aug 2006 00:37:22 -0700 (PDT) Received: by 10.35.15.12 with HTTP; Fri, 25 Aug 2006 00:37:22 -0700 (PDT) Message-ID: Date: Fri, 25 Aug 2006 13:07:22 +0530 From: "Chidanand Gangur" To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_159433_5634285.1156491442352" X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Apache restarts on logrotate X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_159433_5634285.1156491442352 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I have configured apache with php and ssl. I have statically linked them in apache and using it for an embedded application. I have also configured logrotate to rotate the log files when the access_log/error_log reaches to 5M. I am using apache-1.3.34. Many times I see the following message in my error_log file. [notice] SIGHUP received. Attempting to restart after googling I found that SIGHUP is sent by logrotate when it clears and backups the file. I see this event every often. Does the process actually get restarted, or is reloaded? Some times I see that apache process hangs with limit of MaxClient reached. This condition sometime recovers over the period of time and some time does not. Is that the frequent restart of apache process causing this problem? When the condition arises I also tried to do netstat I see lot of stream sockets in connected state. UNIX stream sockets are openened in PHP script to talk to othe r modules in the system. unix 2 [ ] STREAM CONNECTED 8657659 22202/httpd unix 2 [ ] STREAM CONNECTED 8657655 9190/httpd unix 2 [ ] STREAM CONNECTED 8657654 22231/httpd unix 2 [ ] STREAM CONNECTED 8657653 669/httpd unix 2 [ ] STREAM CONNECTED 8657643 7228/httpd unix 2 [ ] STREAM CONNECTED 8657642 28418/httpd unix 2 [ ] STREAM CONNECTED 8657640 412/httpd unix 2 [ ] STREAM CONNECTED 8657637 32393/httpd unix 2 [ ] STREAM CONNECTED 8657636 25979/httpd unix 2 [ ] STREAM CONNECTED 8657635 19223/httpd unix 2 [ ] STREAM CONNECTED 8657634 17688/httpd unix 2 [ ] STREAM CONNECTED 8657628 5491/httpd unix 2 [ ] STREAM CONNECTED 8657623 10928/httpd unix 2 [ ] STREAM CONNECTED 8657622 30138/httpd unix 2 [ ] STREAM CONNECTED 8657620 514/httpd unix 2 [ ] STREAM CONNECTED 8657618 16177/httpd unix 2 [ ] STREAM CONNECTED 8657613 25896/httpd -- Chidanand Gangur Pune. ------=_Part_159433_5634285.1156491442352 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi all,

I have configured apache with php and ssl. I have statically linked them in apache and using it for an embedded application. I have also configured logrotate to rotate the log files when the access_log/error_log reaches to 5M.

I am using apache-1.3.34.
 
Many times I see the following message in my error_log file.

[notice] SIGHUP received.  Attempting to restart

after googling I found that SIGHUP is sent by logrotate when it clears and backups the file.

I see this event every often.

Does the process actually get restarted,  or is reloaded?

Some times I see that apache process hangs with limit of MaxClient reached. This condition sometime recovers over the period of time and some time does not.

Is that the frequent restart of apache process causing this problem?

When the condition arises I also tried to do netstat I see lot of stream sockets in connected state. UNIX stream sockets are openened in PHP script to talk to othe r modules in the system.

unix  2      [ ]         STREAM     CONNECTED     8657659 22202/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657655 9190/httpd         
unix  2      [ ]         STREAM     CONNECTED     8657654 22231/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657653 669/httpd          
unix  2      [ ]         STREAM     CONNECTED     8657643 7228/httpd         
unix  2      [ ]         STREAM     CONNECTED     8657642 28418/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657640 412/httpd          
unix  2      [ ]         STREAM     CONNECTED     8657637 32393/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657636 25979/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657635 19223/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657634 17688/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657628 5491/httpd         
unix  2      [ ]         STREAM     CONNECTED     8657623 10928/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657622 30138/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657620 514/httpd          
unix  2      [ ]         STREAM     CONNECTED     8657618 16177/httpd        
unix  2      [ ]         STREAM     CONNECTED     8657613 25896/httpd        



--
Chidanand Gangur
Pune. ------=_Part_159433_5634285.1156491442352--