LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-28-2010, 05:09 PM   #1
GrdLock
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 1
Apache stops responding to HTTP requests every few days


I've had a VPS running Ubuntu 9.10 x64 server, hosting 3 websites of mine for a few months now. This problem has been happening for a while.

Every once in a while, probably every 2 or 3 days, I'll wake up in the morning, and apache won't be responding, no web pages will load.

/etc/init.d/apache2 status, reports that apache is functioning properly. Every time I simply have to restart the daemon and things run fine for another few days.

I thought maybe it was a memory issue, so I lowered the MaxClients in the prefork module from 50 to 30 a few days ago, but the same thing is still happening. My VPS has 512MB of ram, burstable to 1GB, and according to Virtuozzo, there was only one night of high traffic where I even came close to that soft limit.

I've checked my syslog, and there's absolutely nothing in there about apache. I've checked apache's error.log as well, and there's nothing in there that would indicate a problem either.

I know the description of this problem is pretty vague, but whatever info may help diagnose this problem, please, ask me and I'll get the info. I'm lost here... no clue where to look.

Anyone?
 
Old 12-28-2010, 07:28 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
How big are the log files?

When I self-hosted, I found that, as my little site went from having one or two visitors to have three or four visitors, the size of the log files became an issue. I fixed that by writing a script to stop the server, gzip the logs, and restart the server at 4:00 a. m. every day.

This was a little personal website and blog which I was hosting using the XAMPP stack with all security enabled. Because it was XAMPP, the logs were not in /var, but in /opt/lampp/var.

(Admittedly, this was on an older computer without lots of RAMS, but it did the job for three years.)
 
Old 12-29-2010, 10:33 AM   #3
cosmicbrat
LQ Newbie
 
Registered: Feb 2005
Posts: 26

Rep: Reputation: 1
Is it possible the problem is in "incompatible packages"..? as in mixing U-910 OS with evolved forum softwares and peripherals meant for more advanced Linux OS's..?

I found that U-910 was always a little unstable in a few obscure problem areas.. It's probably why those running U-1004 & U-1010 aren't having those http troubles... Is why I switched from Ubuntu-910 to Fedora... Check it out for yourself.. You'll quickly find that Fedora is twice as good as Ubuntu... To my experiences, Ubuntu feels like it's a "twisted Stonehenge religion".. Fedora feels like it breathes and beats with you, without any non-OS garbage in your face.. Fedora feels like it's built on love and skill and respect and pride... And, If you must take it up a notch, there's always "Scientific (RH) Linux"... What's the reasoning to maintain an irritating OS, when "Fedora-gold" is a click away just for the taking..?

After the updates, go into package mgr, and install "Yumex".. Then have a pardy in Yumex Groups... But be extremely careful to not uncheck any groups.. that uninstalls crucial parts of the OS faster than you can utter "oops!"...

Before you install Fedora, save your treasures to CD's, then run DBAN autonuke to get rid of that buggy little indelible Ubuntu partition that Linux and Windows OS installs can't format...

Add your forum, then tell us that all the PC glitches just up and vanished...

Last edited by cosmicbrat; 12-29-2010 at 10:44 AM.
 
Old 12-29-2010, 05:47 PM   #4
GrdLock
LQ Newbie
 
Registered: May 2004
Posts: 8

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by frankbell View Post
How big are the log files?

When I self-hosted, I found that, as my little site went from having one or two visitors to have three or four visitors, the size of the log files became an issue. I fixed that by writing a script to stop the server, gzip the logs, and restart the server at 4:00 a. m. every day.

This was a little personal website and blog which I was hosting using the XAMPP stack with all security enabled. Because it was XAMPP, the logs were not in /var, but in /opt/lampp/var.

(Admittedly, this was on an older computer without lots of RAMS, but it did the job for three years.)
Well, looks like the access log for my largest website is a good 262MB! Yikes. When I first setup the server, I wrote a script to purge the log files, but I never tested it out or set the cron job for it... I guess I forgot about it. I'll try wiping out the log files and see if that does anything.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
http relay - tracking http requests wastingtime Linux - Server 2 04-28-2009 06:05 PM
Linux server stops responding to telnet requests lab123 Linux - Networking 1 10-25-2005 11:51 AM
Problem recving HTTP requests when Apache listens on port 80 hecter Linux - Networking 1 10-17-2004 02:32 PM
Apache stops responding after several hours. seedsca Linux - Networking 6 03-29-2004 03:18 AM
CUPS not responding to que requests simbolo Linux - Software 5 03-19-2004 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration