apache in worker mode eats memory

From: Mark Bojara (mark_at_aboutit.co.za)
Date: 04/28/05

  • Next message: Etienne Ledoux: "Re: load balancing - email server"
    To: freebsd-isp@freebsd.org
    Date: Thu, 28 Apr 2005 11:15:09 +0200 (SAST)
    
    

    Hi All

    Im running Apache 2.0.53 server on 5.4-RC3 AMD64 in Worker mode. This webserver serves 50000 hits per hour. Whats currently happening is it works fine for 8 hours then the server just starts spawning httpd processes when it reaches about 70 processes the box runs out of memory and swap space then crashes :(

    This is what I currently have set:
    ServerLimit 16
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 20000
    EnableSendfile Off
    HostnameLookups Off
    EnableMMAP on
    Timeout 120
    KeepAlive On
    MaxKeepAliveRequests 1024
    KeepAliveTimeout 15

    Anyone seen this perhaps a better way of doing it?

    Thanks
    Mark

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


  • Next message: Etienne Ledoux: "Re: load balancing - email server"

    Relevant Pages

    • Re: Printing problem
      ... if timeout occurs. ... The same happen when I try to print on local printer, or on SMB printer, ... KeepAliveTimeout 600000 ... printing" for that document. ...
      (Fedora)
    • Re: How to set Timeout with URL Moniker?
      ... > a DWORD value KeepAliveTimeout with timeout in milliseconds. ... InternetSetOption Does Not Set Timeout Values: ... HOWTO: Control Connection Timeout Value by Creating Second Thread: ...
      (microsoft.public.vc.language)