#67 2.4.6 hangs PHP

open
nobody
None
5
2003-11-19
2003-11-19
No

PHP 4.1.2-7.3.6 (RedHat)+php-pgsql, Turck MMCache 2.4.6

configure --enable-mmcache=shared
--with-php-config=$PHP_PREFIX/bin/php-config
--without-mmcache-encoder --without-mmcache-loader
--without-mmcache-sessions --without-mmcache-content-caching

After some hours of work PHP stops answering on requests.
Apache is exhausted with child processes staying idle doing
nothing. Non-PHP requests (to static files) still work.
No messages in error_log.
Access log looks like:
x.x.x.x - - [17/Nov/2003:01:44:41 +0300] "GET / HTTP/1.1" 200 -
Top shows up to MaxClients httpd processes with up to 30
seconds of processor time used (10 hours after lock) and near
zero current system load.
It looks like sort of deadlock in PHP/mmcache.

I revert to 2.4.1, it works.
I didn't try 2.4.2-2.4.5 on this server. (Dual Xeon)

Config:
mmcache.shm_size="32"
mmcache.cache_dir="/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter="!*/_smarty_cached_paths/* !*debug*"
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="1"
mmcache.compress="1"

Discussion

  • Stefan Edstrom

    Stefan Edstrom - 2003-11-21

    Logged In: YES
    user_id=914355

    I have similiar problems on my Dual AMD XP Windows 2000
    server and running PHP 4.3.2 and Apache 1.3.28. Apache
    stops answeres on requests after a while(everything from a
    few minutes to hours).

    I tried Turck MMCache 4.3.4 and had same problems. I will try
    4.3.1 now.

    Maybe something to do that we have dual cpus?

     
  • Stefan Edstrom

    Stefan Edstrom - 2003-11-21

    Logged In: YES
    user_id=914355

    Probably not same problem because it apache stopped
    respond when I test 2.4.1.

     
  • Nobody/Anonymous

    Logged In: NO

    I have the same problem..
    Dual Xeon 2.4ghz, 2GB ram.

    Apache 1.3.29, PHP 4.3.4
    with mmcache 2.4.6 it crashed in a few hours
    i'm using 2.3.23 now and works great!

     
  • Dariusz Markowicz

    Logged In: YES
    user_id=675252

    I have the same problem.

    Pentium III 1.4 GHz, 1GB RAM
    Linux/Debian Apache 1.3.26-0woody3, PHP 4.3.4, mmcache
    2.4.6. Apache hangs after a few hours. There is no info in
    logs.

     
  • Bart van Bragt

    Bart van Bragt - 2004-11-12

    Logged In: YES
    user_id=30196

    Same problem here. Using redhat 7.3 (Upgrade to Debian is
    being planned :D) using a celeron processor (single proc).

    killall -HUP httpd fixes it instantly.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks