Forum Moderators: phranque
I do not want to discuss the value of hosting plans but find it very strange that a leading hosting company claims I have to rent a dedicated server if i want to accomodate more than 65 users at the same time. AND that this is a limitation imposed by THE leading server software, namely Apache.
Surely there is something wrong here?
(Find this person's boss and ask them to hire a techie that knows what s/he is talking about rather than s saleperson trying to push unnecessary services.)
Apache imposes no such limit unless it is TOLD to limit the number of concurrent connections/daemons AND you happen to be using something server-unfriendly such as an AJAX front-end that holds connections open, or you have excessive keep-alive on connections (30s should be enough to get most of the benefit, for example but default can be ten times that or more).
A tiny server can support thousands of "concurrent" users so long as they release connections quickly.
Rgds
Damon
As #1 says, speak to a techie not a salesperson.
Either way, I'd be looking for a new host.
In a VPS you share resources with other users. To prevent you to take all the available memory, the hosting company has limited the number of concurrent connections to a value that they think is appropriate for their number of users of the VPS server and the physical amount of RAM.
Do you have access to your httpd.conf on your VPS? On many VPS configurations you actually can access that file. Search for the MaxClients setting and increase the value. Afterwards restart the apache server. Keep in mind that you probably don't make friends with your hosting company changing this value, but you can test if the limit of 35 is compiled in in the Apache source code, or just a setting in httpd.conf.
<added>
The number of 35 gives me an idea which hosting company you are talking about. I have a VPS with the same default setting in httpd.conf and I guess you are hosting with this same company. I once counted the number of different process owners in the /proc directory and came to over 250 VPS users and 1600 processes per server. Their servers are overloaded (because of the low price per month for the VPS) and 35 is the absolute maximum they can handle with that amount of users.
</added>
Apache can usually run in several modes, one of which uses *one* process to service all your requests, using one thread per request. That is much less memory intensive in many cases (maybe x3 to x10). Another option (which last time I built and configured an Apache from sources rather than using the copy bundled with my host(!) was the default for Solaris) is a mixture of threads and processes, which is somewhere in between for memory consumption and performance.
If you don't change hosts, ask them if the thread option is available to you and what they will set MaxClients to with it.
Rgds
Damon
thanks for all your replies
I think the main problem here is "truth in advertising" (or indeed truth in tech support).
You and I know reasonably well what to expect for our money: we could probably go and start up our own datacentre and start peering with the top-tier providers if we HAD to, but if a hosting company misleads a less-savvy Web master/mistress/small-furry-creature-from-Alpha-Centuri as to what they can get "NO LIMITS EVER!" and then tells stories in tech support calls, they deserve censure, IMHO.
Rgds
Damon