LinuxQuestions.org
Help answer threads with 0 replies.
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 10-09-2008, 04:44 PM   #1
tmr_leon
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Rep: Reputation: 0
Strange speed problems on Apache


Hi. I started running into some strange and intermittent problems with Apache over the last few weeks, and I'm not sure how to go about diagnosing the problem.

What happens is on certain files, Apache would serve really slow (around 22 Kb/s). Most other files are served at around 900 Kb/s.

However, when I delete the file, re-upload it, and try to download it again, it starts downloading at full speed again (and stays that way).

The file I tested with is 13 MB. When the problem is happening, wget estimates the file's download completion time at 1.6 hours. When it's working fine, I get the file in less than 20 seconds.

Can anyone suggest what logs I might be able to check or any other steps I could take to diagnose and isolate the problem? With my meager Linux admin skills, I checked Apache's access and error logs, but they weren't very helpful as far as the strange problem goes.

Any help would be greatly appreciated. TIA!

Last edited by tmr_leon; 10-09-2008 at 04:57 PM.
 
Old 10-16-2008, 02:05 AM   #2
jmcqueen
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
check /var/log/httpd for some clues at the time you are attempting a download that is going slow.
 
Old 10-21-2008, 11:54 PM   #3
tmr_leon
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Cool Solved!

Thanks for the reply, jmcqueen. That was one of the first things I checked, and didn't find anything usual. As far as Apache was concerned, nothing out of the ordinary was happening. It was still able to serve the files, and all gave 200s for the downloads. It all just happened very, very slowly. Even putting Apache's logging in debug mode did not show anything strange.

Also, I forgot to mention another detail regarding the strange behavior. For the big files, it would start out at full speed, then at some point, the download would suddenly slow down to a crawl. This point in the file download was consistent, even with retries.

I talked to a senior colleague of mine and he said that he saw the same behavior before, but with the FTP service of a box running another distro. He said after days of searching for the source of the issues, he found that the XFS volumes' journaling had gone bad. My server is using ext3, but it was my only lead.

I forced an fsck, and so far the issue has not resurfaced! I wasn't able to see the results of the fsck, since I left it running and when I came back all I could see was the login GUI (and apparently fsck doesn't write logs about what it found, presumably because the volumes are unmounted during the process). So far though, everything is looking good.

Hope somebody finds this information useful!
 
  


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
strange behavior with setting GPS serial port speed dovkruger Programming 1 11-17-2007 03:55 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Strange Samba speed problem jpc82 Linux - Networking 0 05-26-2004 04:19 PM
Strange PHP problems with Apache trollatm Linux - Software 4 03-11-2003 01:20 AM

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

All times are GMT -5. The time now is 02:36 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