Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote: Mel wrote: Your extensions.ini has duplicate and non-existing modules. Start here: mv /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini.bkp sort -u /usr/local/etc/php/extensions.ini.bkp |while read MOD; do if

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel wrote: On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote: Mel wrote: Your extensions.ini has duplicate and non-existing modules. Start here: mv /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini.bkp sort -u /usr/local/etc/php/extensions.ini.bkp |while

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 17:33:12 Forrest Aldrich wrote: Mel wrote: On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote: Mel wrote: Your extensions.ini has duplicate and non-existing modules. Start here: mv /usr/local/etc/php/extensions.ini

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel wrote: You can, if you see this: (gdb) bt #0 0x28e4fe5c in ?? () #1 0x2855bb83 in pthread_mutex_destroy () from /lib/libc.so.6 #2 0x285e74fd in __tcf_1 () from /usr/local/lib/libaspell.so.16 #3 0x2855a97a in __cxa_finalize () from /lib/libc.so.6 #4 0x285e6e4a in

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Sorry Mel, I should have looked at the manpage before replying. Here is the output I got: # gdb /usr/local/bin/php php.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 17:55:38 Forrest Aldrich wrote: Sorry Mel, I should have looked at the manpage before replying. Here is the output I got: Loaded symbols for /usr/local/lib/php/20060613/eaccelerator.so Reading symbols from /usr/local/lib/php/20060613/bz2.so...(no debugging

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel wrote: [ .. ] Could you disable the accelerator? Can't say I've seen this one before. Just add a semi colon ';' in front of the module, leave the order in tact. If it still dumps core, then the imap one. You might have to recompile php and all the modules with debugging support to

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel, I found the duplicate entry, which was in /usr/local/etc/php.ini: ; Zend Extensions zend_extension=/usr/local/lib/php/20060613/eaccelerator.so eaccelerator.shm_size=16 eaccelerator.cache_dir=/var/eaccelerator eaccelerator.enable=1 eaccelerator.optimizer=1 eaccelerator.check_mtime=1

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
I took a shortcut and decided to comment out all extensions but these: extension=mysql.so extension=mysqli.so extension=eaccelerator.so Now I run php -v and get this: # php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mysqli.so' -

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Forrest Aldrich wrote: I took a shortcut and decided to comment out all extensions but these: extension=mysql.so extension=mysqli.so extension=eaccelerator.so Now I run php -v and get this: # php -v PHP Warning: PHP Startup: Unable to

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 18:36:59 Forrest Aldrich wrote: I took a shortcut and decided to comment out all extensions but these: extension=mysql.so extension=mysqli.so extension=eaccelerator.so Now I run php -v and get this: # php -v PHP Warning: PHP Startup: Unable to load dynamic

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel wrote: On Friday 22 February 2008 18:36:59 Forrest Aldrich wrote: I took a shortcut and decided to comment out all extensions but these: extension=mysql.so extension=mysqli.so extension=eaccelerator.so Now I run php -v and get this: # php -v PHP Warning: PHP Startup: Unable to load

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel, I recompiled php5 with debugging enabled; but it seems the FreeBSD php5-extensions build ignores this flag and compiles the extensions as-is. No option in their makefile. Anyway, here's the output... I don't think it really says much than before. Thanks, Forrest # php -v PHP

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Mel, etc., I downgraded my system back to MySQL-4.1 (where I had updated to MySQL-5.1) and this has solved the problem. Lesson: don't upgrade your FreeBSD-6.3/Apache-2.0 system to MySQL-5.x without making sure it works first ;-) Of course, there was no way I could have predicted this

6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Forrest Aldrich
I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various Max/Min server levels and that seemed to fix it - except at midnight when the logs are rotated and the server is sent a

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Derek Ragona
At 08:34 AM 2/21/2008, Forrest Aldrich wrote: I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various Max/Min server levels and that seemed to fix it - except at midnight when

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Forrest Aldrich
Derek Ragona wrote: At 08:34 AM 2/21/2008, Forrest Aldrich wrote: I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various Max/Min server levels and that seemed to fix it -

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Derek Ragona
At 11:57 AM 2/21/2008, Forrest Aldrich wrote: Derek Ragona wrote: At 08:34 AM 2/21/2008, Forrest Aldrich wrote: I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Forrest Aldrich
Mel wrote: On Thursday 21 February 2008 18:57:38 Forrest Aldrich wrote: Here's a recent output of top : PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 94711 www 1 1170 41036K 13852K RUN0 1:43 98.69% httpd Is this memory rising? If

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Mel
On Thursday 21 February 2008 18:57:38 Forrest Aldrich wrote: Here's a recent output of top : PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 94711 www 1 1170 41036K 13852K RUN0 1:43 98.69% httpd Is this memory rising? If the below suggestion

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Mel
On Thursday 21 February 2008 20:57:32 Forrest Aldrich wrote: Mel wrote: I doubt it would help. I've seen this lots of times when the php module exit code is hanging. At the same time, the php CLI binary should be crashing on exit. Re-order your modules, there's a thread about it in the

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Forrest Aldrich
Mel wrote: Your extensions.ini has duplicate and non-existing modules. Start here: mv /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini.bkp sort -u /usr/local/etc/php/extensions.ini.bkp |while read MOD; do if test -f /usr/local/lib/php/20060613/${MOD##extension=}; then

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Forrest Aldrich
Mel, I did the recompile (including php5 and php5-extensions) and still get this: # php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mysqli.so' - /usr/local/lib/php/20060613/mysqli.so: Undefined symbol spl_ce_RuntimeException in Unknown on line 0

Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-21 Thread Wojciech Puchar
# php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/mysqli.so' - /usr/local/lib/php/20060613/mysqli.so: Undefined symbol spl_ce_RuntimeException in Unknown on line 0 PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 22:45:11) Copyright