Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2001 11:28:41 -0400
From:      David Hill <djhill@novagate.net>
To:        "Nadir@Attractive" <nadir@attractive.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Is it possible to get more power from a FreeBSD system running Apache/MySQL/PHP ?
Message-ID:  <20010702112841.1e437d12.djhill@novagate.net>
In-Reply-To: <PHEBIOJOBJJLIIJCOINKCEJODMAA.nadir@attractive.com>
References:  <PHEBIOJOBJJLIIJCOINKCEJODMAA.nadir@attractive.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello -

I would try the following:

1. Convert to PHP4 since it is substantially faster than PHP3
2. Run the latest Apache (1.3.x) and MySQL (3.23.x).
3. On FreeBSD, look into the MAXUSERS and NMBCLUSTERS options in the kernel.
4. Possibly try caching with Apache
5. Tweak MySQL.

I would not run Apache 2.0 at this time, since it's still beta.  Plus, I may be wrong, but I don't like PHP supports it yet.

Just my .02
- David

On Mon, 2 Jul 2001 15:13:24 +0200
"Nadir@Attractive" <nadir@attractive.com> wrote:

> Hello all,
> 
> I hope this is the first time anyone is asking such a question, but I
> couldn't find any help in the archives.
> 
> We have a FreeBSD 4.2-STABLE server running mainly Apache, PHP and
> MySQL. It is a 933Mhz Intel Xeon-based server, equipped with 1GB memory
> and 4 SCSI LVD RAID-5 disks. The Apache's httpd.conf file is attached in
> my e-mail for your evaluation.
> 
> Today we had a very HIGH surge of Web visitors to one of our hosted Web
> sites, and it seemed that the server has reached its limits. Each
> Apache's instance used nearly 13MB of memory and a sum of 150 instances
> were active, yielding approximately 2GB of memory usage! This has nearly
> paralized our server, and I couldn't do anything about it, at least
> that's what I think.
> 
> I have few questions:
> 
> 1. Anyone knows if Apache 2.0 can handle more visitors than Apache 1.3.x
> in the current configuration that we have?
> 2. Can I optimize the FreeBSD system that we currently have even further
> to get more power of the server?
> 3. The MAXUSERS configuration parameter is set to 256, and this is the
> kernel's setting now. If I set it to be larger, say 1024, will it yield
> better results?
> 4. Personally I think that this server can do MUCH better, and maybe the
> server's configuration is inaccurate, or insufficient. Any suggestions
> where to start?
> 5. If you need further analysis and information about the server's exact
> configuration, please let me know and I will provide them.
> 
> Meanwhile, the burst of visitors have dropped and the server is back to
> its near "dead" state, where it serves pages quickly and do almost
> nothing. I would like it to serve pages as smoothly, though, when it's
> overloaded and have so many connections to handle.
> 
> Please CC me on your replies.
> 
> Thank you,
> 
> Noor
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010702112841.1e437d12.djhill>