Re: [PHP] APC problem with PHP

2009-02-13 Thread Virgilio Quilario

  Hmm, I'll try taking down the optimizer and seeing if it segfaults or
  not. If that's what it is it's a crying shame that apc and
  zend_optimizer can't get along.


 maybe give eaccelerator a shot, i believe theyve got an optimizer in there.
 im not sure how it stacks up to zend's, but it will do both caching and
 optimization, afaik.  also, you will find a not yet stable optimization
 extension haging out in pecl for apc,

 http://pecl.php.net/package/optimizer

 -nathan


 I'd recommend using X-Cache. I've had nothing but good experiences with it.


i would also recommend x-cache.
it's incredibly fast and stable.
i could also cache data on memory with it.
have used it on high traffic sites with no problem ever since.

Virgil
http://www.jampmark.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-11 Thread APseudoUtopia
On Tue, Feb 10, 2009 at 10:11 PM, Nathan Nobbe quickshif...@gmail.comwrote:

 On Tue, Feb 10, 2009 at 5:53 PM, Jamie Krasnoo jkras...@gmail.com wrote:

  Hmm, I'll try taking down the optimizer and seeing if it segfaults or
  not. If that's what it is it's a crying shame that apc and
  zend_optimizer can't get along.


 maybe give eaccelerator a shot, i believe theyve got an optimizer in there.
 im not sure how it stacks up to zend's, but it will do both caching and
 optimization, afaik.  also, you will find a not yet stable optimization
 extension haging out in pecl for apc,

 http://pecl.php.net/package/optimizer

 -nathan


I'd recommend using X-Cache. I've had nothing but good experiences with it.


[PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Hey all,

I'm new to the list. I came here because I couldn't find the answer to
my question and I'm hoping I can find it here. I compiled the APC
plugin as a shared library and activated it through the php.ini. I ran
'make test' and it seemed to pass all but one (it skipped a test). I
thought all was well. Unfortunately it wasn't. In the middle of the
night I woke up to SMS messages from the monitoring that the server
was going down hard. I got the server back up and found that PHP was
segfaulting and puking core files everywhere and it filled up the
drive.

I removed all the core files and restarted the server and it happened
again. So I removed APC, restarted the server and the core files
stopped. So just to make sure I put APC back on and saw that PHP
started dumping again.

I'm not advanced enough to try and debug the core files but I do know
enough to try and see what is going on. I used gdb to peer in to a
core file and saw that libthread_db.1.so or something like that was
the culprit. Does anyone know what would cause PHP to start
segfaulting after APC was installed?

Thanks,

Jamie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 4:10 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Hey all,

 I'm new to the list. I came here because I couldn't find the answer to
 my question and I'm hoping I can find it here. I compiled the APC
 plugin as a shared library and activated it through the php.ini. I ran
 'make test' and it seemed to pass all but one (it skipped a test). I
 thought all was well. Unfortunately it wasn't. In the middle of the
 night I woke up to SMS messages from the monitoring that the server
 was going down hard. I got the server back up and found that PHP was
 segfaulting and puking core files everywhere and it filled up the
 drive.

 I removed all the core files and restarted the server and it happened
 again. So I removed APC, restarted the server and the core files
 stopped. So just to make sure I put APC back on and saw that PHP
 started dumping again.

 I'm not advanced enough to try and debug the core files but I do know
 enough to try and see what is going on. I used gdb to peer in to a
 core file and saw that libthread_db.1.so or something like that was
 the culprit. Does anyone know what would cause PHP to start
 segfaulting after APC was installed?


are you using apache and if so, do you have threading enabled?

-nathan


Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Yes, I'm using Apache 2.2.11 and I do believe that threading could be
enabled. Apache was compiled through cPanel with Easy::Apache. I
didn't see any options to disable threading unless I missed it.

Jamie

On Tue, Feb 10, 2009 at 3:51 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 4:10 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Hey all,

 I'm new to the list. I came here because I couldn't find the answer to
 my question and I'm hoping I can find it here. I compiled the APC
 plugin as a shared library and activated it through the php.ini. I ran
 'make test' and it seemed to pass all but one (it skipped a test). I
 thought all was well. Unfortunately it wasn't. In the middle of the
 night I woke up to SMS messages from the monitoring that the server
 was going down hard. I got the server back up and found that PHP was
 segfaulting and puking core files everywhere and it filled up the
 drive.

 I removed all the core files and restarted the server and it happened
 again. So I removed APC, restarted the server and the core files
 stopped. So just to make sure I put APC back on and saw that PHP
 started dumping again.

 I'm not advanced enough to try and debug the core files but I do know
 enough to try and see what is going on. I used gdb to peer in to a
 core file and saw that libthread_db.1.so or something like that was
 the culprit. Does anyone know what would cause PHP to start
 segfaulting after APC was installed?

 are you using apache and if so, do you have threading enabled?

 -nathan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:03 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Yes, I'm using Apache 2.2.11 and I do believe that threading could be
 enabled. Apache was compiled through cPanel with Easy::Apache. I
 didn't see any options to disable threading unless I missed it.


a lot of php extensions are not thread safe, perhaps apc is one of them.
most people compile apache w/ mpm_prefork rather than mpm_worker for this
reason.

i know next to nothing about cPanel, thankfully, but youll likely have to
compile php w/ mpm_prefork in order to keep apc from melting down the engine
:)

-nathan


Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
I did compile Apache with mpm_prefork though. cPanel does have the
option to compile with all three mpm choices. What else would there be
in Apache that could be using threads? Oh, I failed to mention that
the PHP scripts that are segfaulting are scripts that exist and
haven't been changed for some time. They already exist and are not
using APC at all. As soon as APC is taken off they stop segfauting.

Jamie

On Tue, Feb 10, 2009 at 4:10 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:03 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Yes, I'm using Apache 2.2.11 and I do believe that threading could be
 enabled. Apache was compiled through cPanel with Easy::Apache. I
 didn't see any options to disable threading unless I missed it.

 a lot of php extensions are not thread safe, perhaps apc is one of them.
 most people compile apache w/ mpm_prefork rather than mpm_worker for this
 reason.

 i know next to nothing about cPanel, thankfully, but youll likely have to
 compile php w/ mpm_prefork in order to keep apc from melting down the engine
 :)

 -nathan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:19 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 I did compile Apache with mpm_prefork though.


hmm, i doubt thats the problem then.  maybe another module not playing nice
w/ apc, xdebug perhaps (just guessing now)?

have you tried other caching solutions like eaccelerator to see if you
encounter the same issue?

-nathan


Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Here's the modules I do have running:

extension=suhosin.so
extension=ffmpeg.so
extension=imagick.so
extension=magickwand.so
extension=memcache.so
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3


zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

Does APC not play nice with any of these?

Jamie

On Tue, Feb 10, 2009 at 4:25 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:19 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 I did compile Apache with mpm_prefork though.

 hmm, i doubt thats the problem then.  maybe another module not playing nice
 w/ apc, xdebug perhaps (just guessing now)?

 have you tried other caching solutions like eaccelerator to see if you
 encounter the same issue?

 -nathan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Here's the modules I do have running:

 extension=suhosin.so
 extension=ffmpeg.so
 extension=imagick.so
 extension=magickwand.so
 extension=memcache.so
 extension=pdo.so
 extension=pdo_sqlite.so
 extension=sqlite.so
 extension=pdo_mysql.so

 [Zend]
 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
 zend_optimizer.version=3.3.3


 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
 zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 Does APC not play nice with any of these?


if i were to guess, those zend_optimizer ones, or less likely, suhosin.

afaik, zend_optimizer and apc arent buddies,

http://www.webdeveloper.com/forum/showthread.php?t=178217

-nathan


Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Hmm, I'll try taking down the optimizer and seeing if it segfaults or
not. If that's what it is it's a crying shame that apc and
zend_optimizer can't get along.

On Tue, Feb 10, 2009 at 4:46 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Here's the modules I do have running:

 extension=suhosin.so
 extension=ffmpeg.so
 extension=imagick.so
 extension=magickwand.so
 extension=memcache.so
 extension=pdo.so
 extension=pdo_sqlite.so
 extension=sqlite.so
 extension=pdo_mysql.so

 [Zend]
 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
 zend_optimizer.version=3.3.3


 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
 zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 Does APC not play nice with any of these?

 if i were to guess, those zend_optimizer ones, or less likely, suhosin.

 afaik, zend_optimizer and apc arent buddies,

 http://www.webdeveloper.com/forum/showthread.php?t=178217

 -nathan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
Ok, so I removed zend_optimizer and activated apc. Guess what ... no
cores produced. So it is zend_optimizer. I searched around the
archives and there seems to be a consensus that it really doesn't do
much or maybe even not anything at all. So it's gone. I would have
started seeing core files all over the place if it had been something
else.

Jamie

On Tue, Feb 10, 2009 at 4:53 PM, Jamie Krasnoo jkras...@gmail.com wrote:
 Hmm, I'll try taking down the optimizer and seeing if it segfaults or
 not. If that's what it is it's a crying shame that apc and
 zend_optimizer can't get along.

 On Tue, Feb 10, 2009 at 4:46 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Here's the modules I do have running:

 extension=suhosin.so
 extension=ffmpeg.so
 extension=imagick.so
 extension=magickwand.so
 extension=memcache.so
 extension=pdo.so
 extension=pdo_sqlite.so
 extension=sqlite.so
 extension=pdo_mysql.so

 [Zend]
 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
 zend_optimizer.version=3.3.3


 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
 zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 Does APC not play nice with any of these?

 if i were to guess, those zend_optimizer ones, or less likely, suhosin.

 afaik, zend_optimizer and apc arent buddies,

 http://www.webdeveloper.com/forum/showthread.php?t=178217

 -nathan




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Shawn McKenzie
Jamie Krasnoo wrote:
 Ok, so I removed zend_optimizer and activated apc. Guess what ... no
 cores produced. So it is zend_optimizer. I searched around the
 archives and there seems to be a consensus that it really doesn't do
 much or maybe even not anything at all. So it's gone. I would have
 started seeing core files all over the place if it had been something
 else.
 
 Jamie
 
 On Tue, Feb 10, 2009 at 4:53 PM, Jamie Krasnoo jkras...@gmail.com wrote:
 Hmm, I'll try taking down the optimizer and seeing if it segfaults or
 not. If that's what it is it's a crying shame that apc and
 zend_optimizer can't get along.

 On Tue, Feb 10, 2009 at 4:46 PM, Nathan Nobbe quickshif...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras...@gmail.com wrote:
 Here's the modules I do have running:

 extension=suhosin.so
 extension=ffmpeg.so
 extension=imagick.so
 extension=magickwand.so
 extension=memcache.so
 extension=pdo.so
 extension=pdo_sqlite.so
 extension=sqlite.so
 extension=pdo_mysql.so

 [Zend]
 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
 zend_optimizer.version=3.3.3


 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
 zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 Does APC not play nice with any of these?
 if i were to guess, those zend_optimizer ones, or less likely, suhosin.

 afaik, zend_optimizer and apc arent buddies,

 http://www.webdeveloper.com/forum/showthread.php?t=178217

 -nathan



Damn it!

$ mount woman
mount: can't find woman in /etc/fstab or /etc/mtab

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:53 PM, Jamie Krasnoo jkras...@gmail.com wrote:

 Hmm, I'll try taking down the optimizer and seeing if it segfaults or
 not. If that's what it is it's a crying shame that apc and
 zend_optimizer can't get along.


maybe give eaccelerator a shot, i believe theyve got an optimizer in there.
im not sure how it stacks up to zend's, but it will do both caching and
optimization, afaik.  also, you will find a not yet stable optimization
extension haging out in pecl for apc,

http://pecl.php.net/package/optimizer

-nathan