Apache under attack and eating resources?

From: Philip Paeps (philip+freebsd_at_paeps.cx)
Date: 09/29/03

  • Next message: Avleen Vig: "Re: Apache under attack and eating resources?"
    Date: Mon, 29 Sep 2003 01:59:39 +0200
    To: security@freebsd.org
    
    

    This might be more related to an Apache-security list, but as the machine is
    running FreeBSD, I thought I'd ask here first.

    In the last two weeks, I've been seeing some very strange errors in my logs a
    few times daily around the same times. While this happens, load averages go
    through the roof (I've seen 36+, which is outragous), and the machine becomes
    very unresponsive.

    First there's a few million of these:

      httpd in free(): warning: recursive call

    Many megs of logfiles, in fact, then, suddenly, I get some that yell:

      httpd in malloc(): warning: recursive call

    Those are followed closely by:

      [Mon Sep 29 01:10:57 2003] [notice] child pid 88809 exit signal Segmentation fault (11)

    And then it repeats, frequently saying these as well:

      httpd in free(): warning: page is already free
      FATAL: emalloc(): Unable to allocate 40 bytes
      Allowed memory size of 8388608 bytes exhausted (tried to allocate 10 bytes)
      httpd in free(): warning: chunk is already free

    My logs are filling up with these, and I'm not sure where to look.
    Crossreferencing the times with vhost error logs and access logs isn't turning
    up anything spectacular. The loads around the times when this occurs aren't
    staggering either, so I'm thinking perhaps someone is DoS'ing my machine :-/

    Has anyone else seen this problem recently? I found some posts in Google and
    other archives mentioning Apache going berzerk like this, but no real
    solutions.

    I have MaxClients set to 175, and Apache never complains about that being too
    low. I don't have any particular ulimits set, as the defaults always worked
    well. In fact, this is the first time I've ever seen a FreeBSD scream for
    resources without me sitting at it and torturing it myself.

    Any ideas?

    Thanks!

     - Philip [worried]

    -- 
    Philip Paeps                                          Please don't CC me, I am
                                                           subscribed to the list.
      A real diplomat is one who can cut his neighbor's throat without having
      his neighbor notice it.  -- Trygve Lie
    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
    

  • Next message: Avleen Vig: "Re: Apache under attack and eating resources?"

    Relevant Pages

    • Re: Vsftpd rotate logs with newsyslog...
      ... restart cause i dont think the apache will be getting too many connections ... apache finishes and probably will xip logs that are still being access by ... you can compress the logs at a later time once the files ... B indicates that the log file is a binary file, ...
      (freebsd-questions)
    • Re: Apache, Possible DoS/Overflow attack ?
      ... >>I was presented with a set of apache logs which were showing some out of ... Clip from Apache Manual: ... Note that when you specify an ErrorDocument that points to a remote URL (ie. ... most important being that the client will not receive the original error status ...
      (comp.os.linux.security)
    • Re: Vsftpd rotate logs with newsyslog...
      ... from your mail is that as apache takes some time to let his children ... But if you go this route, you might loose some logs from ... you can compress the logs at a later time once the files ... B indicates that the log file is a binary file, ...
      (freebsd-questions)
    • Re: the google keywords for debug...
      ... After I added the pint or warn message, I didn't restart Apache. ... I can not find this message in the project private logs. ... I receive a project in perl. ...
      (perl.beginners)
    • oscommerce issue
      ... I'm running FreeBSD 5.4 with Apache 1.3, ... "1046 - No database selected ... Mail has the best spam protection around ...
      (freebsd-questions)