Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.