LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-23-2008, 05:54 PM   #1
xxclixxx
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
Apache gets stuck on Reading Request, bringing server to crawl


Hi All

My server keeps coming to a crawl. Viewing the apache status shows that apache is getting stuck on the reading request mode. I've been searching all day for a solution and found none, and contacted my ISP (6 hours ago!?) without any hint of a reply.


Server uptime: 16 minutes 23 seconds
Total accesses: 22898 - Total Traffic: 59.0 MB
CPU Usage: u18.18 s4.44 cu4.59 cs.71 - 2.84% CPU load
23.3 requests/sec - 61.4 kB/second - 2700 B/request
146 requests currently being processed, 4 idle servers

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR_R
WRRRRRWRR_WRRRRRWWR__W..........................................
................................................................


Any ideas?
 
Old 01-23-2008, 05:58 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Is this your own dedicated server or you have a hosting account? If your just paying for hosting, it's most likely out of your hands and you're sharing this server with hundreds of other people paying for hosting services. I'd say, bug the hosting provider of the issue, that load seems a little too high, there's clearly a problem.
 
Old 01-23-2008, 06:02 PM   #3
xxclixxx
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Original Poster
Rep: Reputation: 0
It's my own dedicated server, normally it's instant page views.
 
Old 01-23-2008, 06:15 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by xxclixxx View Post
It's my own dedicated server, normally it's instant page views.
Are you sure about that? Make sure it's not some virtual server as a dedicated server.

Also what do you have set for your limits in your httpd.conf file for apache? Have you tried restarting it? Anything else running on the system we should know about?
 
Old 01-23-2008, 06:17 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
And a server uptime of only 16 minutes worries me. Did you reboot it? Find out what's hitting your server cause something that gets hit that fast after a reboot would make me think it's a DoS attack of some type or your machine got hacked and they're using it for other things.
 
Old 01-23-2008, 06:29 PM   #6
xxclixxx
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Original Poster
Rep: Reputation: 0
I've been rebooting it because once all of them get stuck at reading requests, then it stops accepting new requests. So I've been basically doing a restart every hour or so for most of today trying to figure out what the problem is.

I think it might be getting DoS'd but I'm unsure how to figure that out. Yes it is a dedicated server and I'm the only one on it. I have ScanAlert scan it daily and a software firewall. I have no reason to believe it's been hacked.
 
Old 01-23-2008, 06:34 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by xxclixxx View Post
I have no reason to believe it's been hacked.
Never assume such things. It's on a network accessible to the world, don't rule it out til you have that confirmed.

I'd suggest shutting down apache. If the problem persists, it's not just apache. Look for suspicious processes, etc. Download a chrootkit and scan your system. Check literally everything and I'd confirm it's not a virtual machine. I said this in another thread, if you're paying $100-$200 a month for a dedicated server, you most likely got yourself a virtual machine. No hosting provider gives out thousand dollar machines for cheap prices on a monthly basis. I go in with a few friends at a colo to host our own servers and we pay over $380 a month for only a 1/3 of a rack, we have to supply our own servers.
 
Old 01-23-2008, 06:57 PM   #8
xxclixxx
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Original Poster
Rep: Reputation: 0
The only thing that is affected is Apache. It's not a virtual machine, it's a $500+ dedicated server from The Planet. Of course they finally reply, and when they check it out everything is going great and they can't find anything in the error logs (which I couldn't either)

What are the possible things that could happen that would make Apache get stuck reading the request? Is it just waiting for the sender to send the request, and if so is there a way to shorten the time it waits for a request?
 
  


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 REQUEST to Apache server from C program Balakrishnan84 Programming 6 07-26-2007 04:00 AM
Webmin causes Apache2 server to slow down to a crawl PlymWS Linux - Server 4 09-05-2006 04:43 AM
[REQUEST] C prog || SERIAL PORT reading nawin_g Programming 4 05-03-2006 09:53 AM
Bringing up interface ppp0: gets Boot stuck cleo Linux - Hardware 0 06-04-2005 12:37 PM
rh8.0 boot up stuck on "bringing up interface eth0" tnf Linux - Wireless Networking 7 03-22-2004 07:41 AM

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

All times are GMT -5. The time now is 09:56 AM.

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