Announcement

Collapse
No announcement yet.

Another Zend Output Handler Question...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another Zend Output Handler Question...

    I have a question. I use PHP and MySQL for all of site pages including the forums:

    http://www.amdmb.com/

    When I set this line in my php.ini file (4.0.4pl1):

    output_handler = ob_gzhandler;

    I have a few problems. First, the speed of downloads, does increase according to a couple modem users. However, it seems to cause a memory leak of some kind, because when it is enable, my memory usage goes from about 120 MB to 200 MB in about 5 minutes. A couple hours later and the memory is full (512 MB) and it is using swap space. Look at these lines from 'top':

    85 processes: 82 sleeping, 3 running, 0 zombie, 0 stopped
    CPU states: 16.0% user, 6.9% system, 0.0% nice, 76.9% idle
    Mem: 517152K av, 211180K used, 305972K free, 215108K shrd, 8520K buff
    Swap: 530136K av, 0K used, 530136K free 73832K cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
    3268 root 3 0 5312 5312 1476 S 4.5 1.0 0:01 mysqld
    3132 root 1 0 5312 5312 1476 S 2.5 1.0 0:00 mysqld
    3077 nobody 1 0 10916 10M 6464 S 2.1 2.1 0:00 httpd
    3070 nobody 1 0 11724 11M 6444 S 1.7 2.2 0:01 httpd
    3259 nobody 1 0 10424 10M 6452 S 1.7 2.0 0:00 httpd
    3075 nobody 2 0 10376 10M 6452 S 1.1 2.0 0:00 httpd
    3249 nobody 1 0 9964 9964 6476 S 1.1 1.9 0:00 httpd
    3368 root 1 0 1088 1088 840 R 0.7 0.2 0:01 top
    3076 nobody 1 0 9936 9936 6448 S 0.1 1.9 0:00 httpd
    3260 nobody 0 0 10340 10M 6460 R 0.1 1.9 0:00 httpd
    3416 nobody 0 0 6516 6516 6304 S 0.1 1.2 0:00 httpd

    10 and 11 MB httpd calls? That is way too high. And when I turn off hte ob_gzhandler, it all returns to normal almost instantly.

    Please help, because I desperatly need to decrease bandwidth usages but not at the cost of killing my server! Thanks
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X