Re: Apache 2 on FreeBSD 5.3

From: Clement Laforet (sheepkiller_at_cultdeadsheep.org)
Date: 02/04/05

  • Next message: Rafał Banaszkiewicz: "Re: Apache 2 on FreeBSD 5.3"
    Date: Fri, 4 Feb 2005 15:41:12 +0100
    To: Vladimir Vrzic <random@beotel.yu>
    
    

    On Fri, Feb 04, 2005 at 10:56:21AM +0100, Vladimir Vrzic wrote:
    > On a FreeBSD 5.3 web server with a very high load, I recently switched
    > from Apache 1.3 and PHP 4.3 to using 2.0 with the prefork MPM and PHP 5.
    > I noticed a drop in perfomance.
    Did you find the bottleneck?

    > What is currently the best (in terms of
    > performance) choice for Apache w/ PHP on FreeBSD? Which MPM should I
    > use? Does worker MPM use KSE on FreeBSD 5 and does it perform better
    > than prefork? What about perchild and threadpool? Or maybe I should go
    > back to Apache 1.3? Are there any sysctl or kernel tunings that I should
    > use?

    - Notes on MPM's: Currently, you can expect good performance with
      prefork and worker. perchild is b0rked and threadpool is
      experimental.
    - Using apache2 with PHP is *safe* with prefork.
    - worker MPM use KSE and performs well, with a custom apache2 (see
      options for apache2 port), in some cases, worker MPM outperforms
      prefork one.
    - If you use apache2 in ports tree, you can try apr_poll() patch which
      supports kqueue, define WITH_EXPERIMENTAL_PATCHES.
      It's pretty stable and improves significantly apache reponsivness.

    clem
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Rafał Banaszkiewicz: "Re: Apache 2 on FreeBSD 5.3"

    Relevant Pages

    • Re: mod_frontpage + apache2
      ... just remembered one catch for freebsd 5.X: ... you will have to symlink: ... Subject: mod_frontpage + apache2 ... > UNIX Systems Engineer ...
      (freebsd-isp)
    • [SLE] Apache2 help!
      ... I've just upgraded from 9.0 Pro to 9.1 Pro. ... Once upgraded, i noticed apache was gone and replaced with apache2, only ... It seems that the package prefork is causing problems, without prefork, ...
      (SuSE)
    • Re: autostart apache
      ... I would like Apache2 to start automatically when FreeBSD is done booting. ... It depends on which version you've installed (was it www/apache20? ... Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> ...
      (freebsd-questions)
    • mod_php5 with-gd option
      ... I tried to modify the Makefile with the line: ... i have FreeBSD 4.11-RELEASE and apache2 on my computer. ...
      (freebsd-questions)
    • Re: autostart apache
      ... >I would like Apache2 to start automatically when FreeBSD is done booting. ... a million chances happen 99% of the time. ...
      (freebsd-questions)