Project

General

Profile

high CPU Load since upgrade 1.4.20 to 1.4.21

Added by Meskalyn about 15 years ago

Since I upgrade lighttpd 1.4.20 to 1.4.21, my CPU load increase a lot. At the same time, I upgrade php 5.2.6 to 5.2.8
In the attachment, you can see the upgrade (done the 22th february).

I'm not sure it's a lighttpd problem, it could be a PHP problem.

Sysinfo :
OS FreeBSD

audrey# uname -a
FreeBSD audrey.xxx.net 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

LighttpD
audrey# lighttpd -V
lighttpd-1.4.21 (ssl) - a light and fast webserver
Build-Date: Feb 24 2009 04:20:40

Event Handlers:

        + select (generic)
        + poll (Unix)
        - rt-signals (Linux 2.4+)
        - epoll (Linux 2.6)
        - /dev/poll (Solaris)
        + kqueue (FreeBSD)

Network handler:

        + sendfile

Features:

        - IPv6 support
        + zlib support
        + bzip2 support
        + crypt support
        + SSL Support
        + PCRE support
        - mySQL support
        - LDAP support
        + memcached support
        + FAM support
        + LUA support
        + xml support
        + SQLite support
        - GDBM support

the compil date is just with a test with removing some useless stuff for me like IPv6 support and adding (for test load) FAM support.

PHP

audrey# php -v
PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Feb 24 2009 04:28:47)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Compiled with usual stuff, no change.

I use :

server.network-backend          = "writev" 
server.max-request-size         = 16384
server.event-handler            = "freebsd-kqueue" 
server.stat-cache-engine        = "fam" 

I try a lot of different options, and just after the upgrade, without "server.network-backend = "writev"", upload file bigger than arround 100Ko failed without error message.

Arround 20 requests/second at this time, 100 requests/second at the "worst" moment of day...

I hope I'll give all information, I found 2 or 3 bugs could be the origin of the problem, but not sure...

Edit : This lighttpd use almost only SSL v3


Replies (2)

RE: high CPU Load since upgrade 1.4.20 to 1.4.21 - Added by Meskalyn about 15 years ago

I'm currently trying this http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2403.
I know it's not for a high CPU load but I hope it solve my problem.

RE: high CPU Load since upgrade 1.4.20 to 1.4.21 - Added by Meskalyn about 15 years ago

The change in revision 2403 doesn't work.
An user report same problem with truss here http://redmine.lighttpd.net/issues/1918

    (1-2/2)