For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2006 > re: Tree- memory error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author re: Tree- memory error
Daesy Zainol

2006-03-22, 3:59 am

-Hi all,

I have a program which is using Pear Tree

$tree = Tree::setupMemory( 'DBsimple' , // use the simple
DB schema
'mysql://id:pw@localhost/ds', // the DSN
$options);

$tree->setup();

It used to be working fine however now the table volume has increased and
I hit this error when the 'setup' command is run.


Fatal error: Allowed memory size of 134217728 bytes exhausted at (null):0
(tried to allocate 35 bytes) in /usr/share/pear/Tree/Memory.php on line
615

My initial memory is set to 128MB. Increasing that does not help


I understand I may have to change the method and not use Memory. SInce the
data and tables is already existing - not sure how to do this.

Pls help and advise on solution

thanks !
Appreciate it

regards
daesy
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com