Apache server extreme slow, while samba server is extreme fast!
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.
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)
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.