Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 09, 2012 10:44 am 
Offline
Newbie
User avatar

Joined: Mon Jul 09, 2012 7:32 am
Posts: 3
Hi all,

I've been on Linode for some years now with no major issue. Since a few days, I've started noticing something troublesome on one of my Debian 6.0 boxes:

Code:
rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="1248" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.


When I get this line in /var/log/messages, Apache just freezes (presumably because Apache logs a lot) and the only way for me to get things going again is to restart both the rsyslogd and apache2 services manually.

Anyone noticing something similar? Any clue?

Thanks a lot.

_________________
I am at http://www.avinashmeetoo.com/


Top
   
PostPosted: Mon Jul 09, 2012 11:54 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Is Apache configured to use syslog for logging? Normally, Apache handles writing to its own separate log files and shouldn't be affected by the presence or absence of syslog.

Typically a HUP signal is sent to a daemon to tell it to reload its configuration files, or to close and re-open any log files it is writing to. If this happens at a predictable time, I would guess that a log rotation script is sending the HUP signal to rsyslogd, but I don't know why that would cause it to freeze.


Top
   
PostPosted: Tue Jul 10, 2012 12:12 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
It could be that Apache2 is freezing because logrotate is kicking in to rotate your Apache2 logs as well. This would require logrotate to issue a reload(?) to Apache2 to tell it to close and reopen log files.

This would make the most sense if it's happening around the time system logs are being rotated out.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Tue Jul 10, 2012 10:41 am 
Offline
Newbie
User avatar

Joined: Mon Jul 09, 2012 7:32 am
Posts: 3
I've done the following test:

Code:
# time logrotate -f /etc/logrotate.conf 
real   0m7.945s
user   0m3.007s
sys   0m0.529s

# tail /var/log/messages
Jul 10 14:37:27 server01 rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="5785" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.


And, interestingly, Apache was not affected by the log rotation. So it seems that I've been erroneously thinking that the HUP signal being sent to rsyslogd and Apache's behavior were somewhat related.

I guess I'll need to wait for Apache to freeze again to know what's really happening...

Thanks for your help anyway.

_________________
I am at http://www.avinashmeetoo.com/


Top
   
PostPosted: Thu Jul 19, 2012 1:56 am 
Offline
Newbie
User avatar

Joined: Mon Jul 09, 2012 7:32 am
Posts: 3
Ok. I've identified the problem:

In fact, Apache was freezing because of APC. When the APC cache becomes full, PHP apps, if wrongly written (and a lot of them are) tend to freeze.

My solution was to increase the APC cache from the default 32Mb to 128Mb and Apache has been working fantastically well for the past week now. It hasn't frozen once.

_________________
I am at http://www.avinashmeetoo.com/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mattltm and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group