Re: apache in worker mode eats memory

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

  • Next message: Jim Durham: "Re: Mail Server recommendations"
    To: Andrew McNaughton <andrew@scoop.co.nz>
    Date: Thu, 28 Apr 2005 19:09:00 +0200 (SAST)
    
    

    what options would you advise i tweak?

    On Apr 28, 2005 11:35 AM, Andrew McNaughton <andrew@scoop.co.nz> wrote:

    >
    > If apache is allowed to spawn enough processes to run you out of memory,
    > you are going to have problems. Work on your apache config and process
    > limits to make sure this can't happen.
    >
    > If you consume enough memory to start paging, the time it takes for a
    > request to be handled climbs, more processes mount up, you consume more
    > memory, and the system goes down badly. Limiting how much you try to
    > handle at once enables you to handle more.
    >
    > If your server processes have a large memory footprint, using a proxy in
    > front of your web server to handle spooling requests to users might help a
    > lot. Caching is not necessarily part of that picture, but that might also
    > help save you from using large apache processes to serve simple requests.
    >
    > Andrew McNaughton
    >
    >
    >
    > On Thu, 28 Apr 2005, Mark Bojara wrote:
    >
    > > Date: Thu, 28 Apr 2005 11:15:09 +0200 (SAST)
    > > From: Mark Bojara <mark@aboutit.co.za>
    > > To: freebsd-isp@freebsd.org
    > > Subject: apache in worker mode eats memory
    > >
    > > 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"
    > >
    >
    > --
    >
    > There is no way to happiness
    > Happiness is the way
    >
    > -------------------------------------------------------------------
    > Andrew McNaughton http://www.scoop.co.nz/
    > andrew@scoop.co.nz Mobile: +61 422 753 792
    >
    > --
    > pgp encrypted mail welcome
    > keyid: 70F6C32D keyserver: pgp.mit.edu
    > 5688 2396 AA81 036A EBAC 2DD4 1BEA 7975 A84F 6686
    >

    _______________________________________________
    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: Jim Durham: "Re: Mail Server recommendations"

    Relevant Pages

    • Re: Apache doesnt free RAM
      ... After serving those requests Apache should free the allocated ... This apache process is using 100 MB memory ... Could it be PHP that is doing that? ...
      (comp.infosystems.www.servers.unix)
    • [UNIX] Denial of Service in Apache HTTP Server 2.x
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Apache Software Foundation's HTTP Server Project is an effort to ... A memory leak in Apache server, allows a remote user to exhaust system ... Remote exploitation of a memory leak in the Apache HTTP Server causes the ...
      (Securiteam)
    • Re: apache in worker mode eats memory
      ... If apache is allowed to spawn enough processes to run you out of memory, ... handle at once enables you to handle more. ... If your server processes have a large memory footprint, ...
      (freebsd-isp)
    • Apache doesnt free RAM
      ... I have a problem with my apache processes. ... They're allocating ~100 MB memory after a client requested a PHP ... After serving those requests Apache should free the allocated ...
      (comp.infosystems.www.servers.unix)
    • Re: packet drop with intel gigabit / marwell gigabit
      ... Attached is a shell script to watch mbuf usage in 1 second interval. ... If you do not see such memory problem, then you need to prepare to use ... when i stop apache it falls back to 0,1-0,2%, starting apache again and got ...
      (freebsd-performance)