LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-11-2003, 07:54 AM   #1
Gardener
LQ Newbie
 
Registered: Aug 2002
Location: Stockholm, Sweden
Distribution: Red Hat 7.x
Posts: 7

Rep: Reputation: 0
Runaway apache processes


Late on thursday evening my Apache server went haywire and started new processes like crazy making the load get extremely high (went up to 250 or something like that). After reaching the maxclient config setting processes started seg faulting according to the error_log.

The strange thing is that I hadn't done anyting, no new programs, no new websites for some time or anything really. The last thing I did was installing MySQL 4.0.6 when it was released, but that was something like December 16 and it's been working fine since then.

I'm running Red Hat 7.1 with most rpm upgrades available. Linux kernel 2.4.18, Apache 1.3.26 (without SSL), PHP 4.2.3 and MySQL 4.0.6.

I've searched on Google but haven't found anything that really applies, there was some problem with apache < 1.2 that seemed a bit similar but that was it.

Does anyone know what this can be as I have no idea where to start looking.
 
Old 01-11-2003, 12:51 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,003
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
MySQL 4.0.6 and Apache 1.3.26 contain vulnerabilities that where corrected in MySQL 4.0.7 and Apache 1.3.27. If you can verify (Aide, Samhain, Tripwire) your system is "clean", then you'll have to grep tru your logs for anomalies.
 
Old 01-12-2003, 06:34 PM   #3
Gardener
LQ Newbie
 
Registered: Aug 2002
Location: Stockholm, Sweden
Distribution: Red Hat 7.x
Posts: 7

Original Poster
Rep: Reputation: 0
I'm sorry, the version of Apache I'm running is in fact 1.3.27.

I also upgraded to MySQL 4.0.9 because of the vulnerability issue, but it didn't help.

I've gotten some information that suggests that I can have hardware problems, possibly with the memory. I'm going to check that out as soon as possible.
 
Old 01-25-2003, 06:56 PM   #4
Gardener
LQ Newbie
 
Registered: Aug 2002
Location: Stockholm, Sweden
Distribution: Red Hat 7.x
Posts: 7

Original Poster
Rep: Reputation: 0
Just thought I'd give an update on this.

It turned out that one of the sites on the server had a script that entered a never ending loop and for some reason the max execution time of PHP didn't work. This kept lots and lots of processes running taking up all system resources.

Upgrading to PHP 4.3.0 helped a bit, but the broken script could still run too long quite often.

But after the script was fixed everything is running smoothly again. I would have checked the scripts of that site earlier hadn't the site admin ensured me that nothing had been changed. Unfortunately one of his minions had done some changes (adding the broken script). Just goes to show that you can't trust anyone when trying to find the cause of an error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to prevent runaway processes from crashing system? agtlewis Linux - General 14 10-13-2005 09:41 AM
Apache ... wierd processes Odins_Son Linux - General 3 08-18-2005 11:38 AM
Apache 2 Child Processes Seg faulting! DavidHayes Linux - Software 1 04-20-2005 07:54 PM
Limiting child processes in Apache? Phaethar Linux - Software 2 11-02-2004 05:24 PM
so many apache processes cjpsparks Linux - Software 4 01-07-2004 04:54 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration