Re: Slow apache response

From: Shane Ambler (Shane_at_007Marketing.com)
Date: 08/17/05

  • Next message: Shane Ambler: "Re: Slow apache response"
    Date: Thu, 18 Aug 2005 00:40:42 +0930
    To: FreeBSD Mailing Lists <freebsd-performance@freebsd.org>
    
    

    On 17/8/05 8:57 PM, "Eric Anderson" <anderson@centtech.com> wrote:

    > Shane Ambler wrote:
    >> I am running a traffic exchange site and have just moved to a dedicated
    >> server (new server has been running 15 hours).
    >>
    >> Server is a P4 1.8G with 1024MB RAM
    >>
    >> Pages seem to be loading slower than the previous virtual server account but
    >> looking at top shows idle% to stay above 80
    >>
    >> The mysql backend is located off the server and has not changed in any way
    >> when the web server changed.
    >>
    >> Wusage reports show upto 10,000 hits an hour for the end of yesterday and up
    >> to 18,000 hits a few hours ago. (these are the new server stats)
    >>
    >> One thing that has me curious is apache is started with 150 servers (which I
    >> am fine with) and currently I count 178 instances of apache running - but in
    >> top all but a couple show their state as lockf which I can't find a
    >> reference to.
    >>
    >> Apart from apache there is sendmail and ssh running (and the basics such as
    >> tty's, cron and syslog)
    >>
    >> All pages are php.
    >>
    >> Any ideas on how I can get response times up?
    >
    > What state are the running httpd processes in (not the ones in lockf)?
    >
    I'm seeing sbwait select kqread

    > Also, did you compile apache from ports, or install via package, or other?
    >
    The hosting provider (webair) installed from their own package

    Server version: Apache/1.3.33 (Unix)
    Server built: Feb 10 2005 12:34:22

    If you are wondering about me asking them I have root access which to get I
    agreed to take full responsibility for admin etc.

    > Have you tried bumping up the number of servers to 200?
    >
    > Can you send the output of:
    >
    > netstat -m
    > uname -a
    >

    > netstat -m
    131/784/26624 mbufs in use (current/peak/max):
            110 mbufs allocated to data
            21 mbufs allocated to packet headers
    103/304/6656 mbuf clusters in use (current/peak/max)
    804 Kbytes allocated to network (4% of mb_map in use)
    0 requests for memory denied
    0 requests for memory delayed
    0 calls to protocol drain routines
    > uname -a
    FreeBSD mission.webair.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Tue Aug 16
    10:19:30 EDT 2005 root@mission.webair.com:/usr/src/sys/compile/asck1
    i386

    I compiled the kernel removing most device options and adding ipfw

    > Eric
    >
    >
    >

    -- 
    Shane Ambler
    Sales Department
    007Marketing.com
    Shane@007Marketing.com
    _______________________________________________
    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: Shane Ambler: "Re: Slow apache response"

    Relevant Pages

    • Re: What doesnt lend itself to OO?
      ... > system design within that context seriously). ... >>The first line exists in the server. ... > objects between client and server i.e. as far as the client code is ... the message data packet data in the server between requests, ...
      (comp.object)
    • Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
      ... I have an embedded server I ... I/O, audio, and child processes that handle VoIP signaling protocols ... want to throttle the concurrency of requests at the kernel level *for ...
      (Linux-Kernel)
    • Re: HttpListener BeginGetContext does not seem to handle more than 2 request simultaneously
      ... my server ran just fine and seemed to ... be aceepting/processing multiple requests simultaneously. ... System.OutOfMemoryException: Exception of type ... K> PR2 2 ...
      (microsoft.public.dotnet.framework)
    • RE: ARP Spoofing and Routing
      ... It sounds to me like you were only doing one way arp spoofing... ... requests sent out from that server. ... Up to 75% of cyber attacks are launched on shopping carts, ...
      (Pen-Test)
    • httpd.conf apcahe2 how to make php5 module work ?
      ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ... Directives that control the operation of the Apache server process as a ... which allow Web requests to be sent to ...
      (freebsd-questions)