LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2010, 03:23 AM   #1
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Rep: Reputation: 15
Apache server extreme slow, while samba server is extreme fast!


Hi all,

I have changed my home network a bit, and everything works extremely fast, except for my apache server, which seems to serve webpages so slowly, it is abnormal. Even simple directroy pages are served in around 5 sec, and this is not a joke! It used to work pretty fast. What I have changed is that i replaced a hub with a switch, and that I linked my personal PC with my server together through a hub. I also installed Gnome desktop on the webserver machine. My network now looks like follows:

Internet
/\
||
\/
Modem
/\
||
\/
Router: 1 machine and a switch
/\
||
\/
Switch: 5 machines and a hub
/\
||
\/
Hub: 2 machines
/\
||
\/
My personal PC (Vista) and my webserver (Debian Lenny with Apache 2 and a Samba server)

Do you guys now if it is the network buildup, or something else.

Ping goes with < 1 ms from my personal PC to webserver, tracrt is: [1 1ms <1ms <1ms], but http requests take over 5 sec (in a browser)

Best regards,

Geert
 
Old 01-12-2010, 09:17 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
First, eliminate the Apache server as the problem. While logged into the server, run a browser or wget or curl to fetch a URL from localhost. How is the speed in that scenario?

--- rod.
 
Old 01-12-2010, 09:29 AM   #3
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
From the same machine, it is: (wget localhost/test.mp3)
15.5M/s in 0.3s
 
Old 01-12-2010, 03:39 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, so it probably isn't the Apache configuration, and I assume you have tested the problem with both your Linux and Windows clients. I guess I would try to see if the request is being delayed somewhere in the pipeline. Get the server and one or more of the client clocks well synchronized (ntp), and see if you can tell from the access log timestamps whether the request is being received in a timely manner.
Do you have any kind of proxy server or other caching mechanism involved?
I cannot think of anything else to check right now. I hope someone else can chime in with some ideas.
--- rod.
 
Old 01-15-2010, 03:31 AM   #5
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Hi, I have sped up the speed greatly by doing the following:
The hub has 8 ports, and 1 extra OUT port. I connected the OUT port with the switch. When I connected the switch to any of the normal ports, it sped up greatly. I am not sure why this is... What does the OUT port on the hub mean?

Best regards,

Geert
 
Old 01-17-2010, 11:07 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Usually, it just means that it is intended to be used as a uplink to another concentrator. The only difference is that it might be capable of connecting with a crossover cable, or that it requires one, or that it is switchable.
--- rod.
 
  


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
Fedora 7 Server help (extreme newb) alexjk Linux - Server 13 05-15-2009 01:09 AM
snd_hda_intel + waikiki chip + hp dv8230 us = extreme extreme frustration mlfarrell Linux - Hardware 4 11-18-2007 10:19 PM
apache slow, only fast when i check "Use a proxy server.... sabre81 Linux - Networking 1 08-05-2005 07:41 AM
newbie Extreme - setting up mysql and php on remote server little girl Linux - Software 3 01-19-2004 12:23 PM
extreme lag and slow dowloads Chooco Linux - Networking 6 05-31-2002 08:56 PM

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

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