Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
my webserver is 3000+ with maxtor sata2 200GB
using debian+apache2+php4+mysql
it's ok when there are not too many connections.
however, when there are around 60 connections,
it takes around 10 sec to load a 10KB webpage.
at that time, the average upload is 30 KB/s only
but normally, my max upload can up to 1MB/s
the cpu usage is only around 1x%
and when I ssh to my server, it's connected without waiting a sec.
so why my web server is running so slowly when there are around 60 connections? is it the problem of my apache's setting?
This my be related to your upload connection rather than anything to do with the server itself. Depends largely on what your connection is, which you have not specified. If you have no load balancing on the server then the server will hand back on a first come first serve basis and the service will degrade. i.e. this is a bandwidth problem. Without concrete details I am guessing.
The connections refer to the number of visitors browsing the webpages from the web server.
my upload bandwidth can up to 1 MB/s on average.
But it's only 1x KB/s when the web server is running so slowly
(i.e. there are more than 60 visitors on the webpages)
Btw, how can I set the load balancing on the server?
Thanks.
Quote:
Originally Posted by TigerOC
This my be related to your upload connection rather than anything to do with the server itself. Depends largely on what your connection is, which you have not specified. If you have no load balancing on the server then the server will hand back on a first come first serve basis and the service will degrade. i.e. this is a bandwidth problem. Without concrete details I am guessing.
This tutorial will give you the reasons why this is happening and how to resolve the situation. I would also look at mod-gzip for apache which compresses responses and speeds up communication significantly.
Finally, I solved the problem by changing the setting of prefork module
<IfModule prefork.c>
StartServers 5
MinSpareServers 25
MaxSpareServers 75
MaxClients 20 <-- changed into 256
MaxRequestsPerChild 0
</IfModule>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.