Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jan 23, 2010 4:21 pm 
Offline
Newbie

Joined: Sat Jan 23, 2010 4:10 pm
Posts: 2
Website: http://gamador.com/
Location: Berkeley CA
On three different occasions last night, my apache server stopped responding to requests. Twice just for three minutes, the third time for a couple hours until I restarted it. I am using LogLevel debug but the error logs don't show anything at all over that time period. The access logs show requests being served normally until they just stop. There wasn't an unusual level of load, although I had just resized the linode earlier in the evening.

I'm proxying to apache with nginx, and checking the nginx access logs on each of those occasions, nginx just shows 499 errors for a while, then 504 errors for the rest of the time. That seems like what I would expect if Apache stops responding for some reason.

So where can I go from here to figure out what happened? I'm using django+postgres but I don't know how to investigate with no useful apache logs.


Top
   
 Post subject:
PostPosted: Sat Jan 23, 2010 9:19 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
Can you tell how many children apache has at that time? I.e. are they deadlocked and just stacking up to the max?


Top
   
 Post subject:
PostPosted: Sat Jan 23, 2010 11:17 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Did you resize to a larger linode or to a smaller one? If you shrinked your linode, the usual suspect would be OOM (out-of-memory). You can use Munin to monitor memory usage over time. Even if memory turns out not to be the culprit, at least you can eliminate one possibility this way, and Munin also gives you other useful statistics.


Top
   
 Post subject:
PostPosted: Sun Jan 24, 2010 1:31 am 
Offline
Newbie

Joined: Sat Jan 23, 2010 4:10 pm
Posts: 2
Website: http://gamador.com/
Location: Berkeley CA
I resized to a larger linode. But I probably should be using Munin anyways, that's a good point.

Looking at the logs, it didn't appear that there was a deadlock. Using worker mpm there were three wsgi daemon processes and each were serving requests normally up to the time when the server went dead. Would you expect to see something in error.log if apache ran out of children?


Top
   
 Post subject:
PostPosted: Fri Jan 29, 2010 11:04 pm 
Offline
Senior Member

Joined: Mon Oct 12, 2009 1:20 am
Posts: 50
Normally when Apache runs out of children itll tell you in the error_log that it hit the MaxClients setting.

Are your Apache logs being rotated properly? An oversized log can cause strange issues. Do you have any RLimits configured?


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


Who is online

Users browsing this forum: No registered users and 3 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