Re: Fatal memory allocation error at cleanup on production server only

2010-03-14 Thread Mark Hindley
OK, I have tracked down a minimal test case and it seems to be nothing to do with CakePHP. So sorry for the noise. Just FYI, the following minimal php script produces the Fatal error, even outside CakePHP, so it seems to be something in the php installation. ?php ini_set('include_path',

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Mark Hindley
On Fri, Mar 12, 2010 at 09:24:06PM -0800, Dr. Loboto wrote: Did you place echos in each deatructor both on enter and exit? Yes. The one in socket.php didn't seem to be being called, but the others all seemed to run and exited before the Fatal error appears. Are the destructors the very last

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Jon Bennett
can you install xdebug? http://xdebug.org/ j On 13 March 2010 11:13, Mark Hindley m...@hindley.org.uk wrote: On Fri, Mar 12, 2010 at 09:24:06PM -0800, Dr. Loboto wrote: Did you place echos in each deatructor both on enter and exit? Yes. The one in socket.php didn't seem to be being called,

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Mark Hindley
On Sat, Mar 13, 2010 at 11:53:58AM +, Jon Bennett wrote: can you install xdebug? http://xdebug.org/ The production server is on cpanel so I don't think I can directly. I have just asked the hosting provider to consider it. Cheers, Mark Check out the new CakePHP Questions site

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Jon Bennett
can you install xdebug? http://xdebug.org/ The production server is on cpanel so I don't think I can directly. I have just asked the hosting provider to consider it. Ahh, another case of cpanel/plesk et all getting in the way - good luck. j -- jon bennett - www.jben.net - blog.jben.net

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Jon Bennett
can you install xdebug? http://xdebug.org/ The production server is on cpanel so I don't think I can directly. I have just asked the hosting provider to consider it. Is it feasible to purchase another box without cpanel but the same spec that you can put xdebug on, perhaps routing some

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Mark Hindley
On Sat, Mar 13, 2010 at 12:30:39PM +, Jon Bennett wrote: can you install xdebug? http://xdebug.org/ The production server is on cpanel so I don't think I can directly. I have just asked the hosting provider to consider it. Is it feasible to purchase another box without cpanel but

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Jon Bennett
Possibly -- but that is part of the problem. I identical cakephp and app running of 2 dev systems and it runs flawlessly with no equivalent error.  It only seems to be happening on this particular system, unfortunately that is the production server! Could it be traffic specific? Do your dev

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Mark Hindley
On Sat, Mar 13, 2010 at 12:56:56PM +, Jon Bennett wrote: Possibly -- but that is part of the problem. I identical cakephp and app running of 2 dev systems and it runs flawlessly with no equivalent error.  It only seems to be happening on this particular system, unfortunately that is

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread Jon Bennett
Could it be traffic specific? Do your dev boxes have cpanel on them or are they identical? Possibly. The dev boxes are just various versions of Debian. I think trying to reproduce the exact versions of everything on the cpanel box will be tricky. And if it is a configuration issue, it still

Re: Fatal memory allocation error at cleanup on production server only

2010-03-13 Thread nurvzy
You can try narrowing it down by lopping off sections of your app one a time. Start with broad strokes, rename your database.php file to something else taking away the database connection all together. Your app will fail but it might give you a place to start if you don't run into the out of

Re: Fatal memory allocation error at cleanup on production server only

2010-03-12 Thread Mark Hindley
On Thu, Mar 11, 2010 at 09:01:26AM -0800, Dr. Loboto wrote: If your production runs with debug = 2 it may be big SQL log and new allocation to show it. But I'm not sure. Thanks. The production was running with debug = 0. When it is set to 2, the Fatal Error appears after the SQL log is output,

Re: Fatal memory allocation error at cleanup on production server only

2010-03-12 Thread Dr. Loboto
If error occurs on shutdown it definitely caused by some destructor. I've looked into all defined by cake core destructors and found some possible dangerous in some cases. All of them write caches and use array_filter($objects_to_save) that may give memory allocation error if $objects_to_save is a

Re: Fatal memory allocation error at cleanup on production server only

2010-03-12 Thread Mark Hindley
On Fri, Mar 12, 2010 at 08:24:33AM -0800, Dr. Loboto wrote: If error occurs on shutdown it definitely caused by some destructor. I've looked into all defined by cake core destructors and found some possible dangerous in some cases. All of them write caches and use

Re: Fatal memory allocation error at cleanup on production server only

2010-03-12 Thread Dr. Loboto
Did you place echos in each deatructor both on enter and exit? On Mar 13, 2:59 am, Mark Hindley m...@hindley.org.uk wrote: On Fri, Mar 12, 2010 at 08:24:33AM -0800, Dr. Loboto wrote: If error occurs on shutdown it definitely caused by some destructor. I've looked into all defined by cake

Re: Fatal memory allocation error at cleanup on production server only

2010-03-11 Thread mark
On 6 Mar, 21:58, mark m...@hindley.org.uk wrote: Hi, I have a cakephp app that has started to throw a Fatal Memory allocation error. Strangely it only happens on the production server (Cpanel, php 5.2.12) but not on either dev machines (php 5.2.11). This is with CakePHP version 1.2.4.8284.

Re: Fatal memory allocation error at cleanup on production server only

2010-03-11 Thread Dr. Loboto
If your production runs with debug = 2 it may be big SQL log and new allocation to show it. But I'm not sure. On Mar 11, 2:55 pm, mark m...@hindley.org.uk wrote: On 6 Mar, 21:58, mark m...@hindley.org.uk wrote: Hi, I have a cakephp app that has started to throw a Fatal Memory

Fatal memory allocation error at cleanup on production server only

2010-03-06 Thread mark
Hi, I have a cakephp app that has started to throw a Fatal Memory allocation error. Strangely it only happens on the production server (Cpanel, php 5.2.12) but not on either dev machines (php 5.2.11). This is with CakePHP version 1.2.4.8284. It has only started recently, nothing in the script