LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2009, 02:42 AM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Pear - Allowed memory size of 8388608 bytes exhausted - error


Hey,

Lately whenever I try to install something using PEAR I get an error that looks something like this (this error is from installing the "inclued" extension):

Code:
Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/share/pear/PEAR/PackageFile/v2/Validator.php on line 483
Problem is that "memory_limit" in php.ini is already 64MB so where does 8388608 come from ?! (and for that matter just how bad is for the server to keep a memory limit of 64MB ?).

All the answers I've found online suggested to change the memory limit variable, which I did. Do you have any ideas ?

Thanks.
 
Old 04-08-2009, 05:33 AM   #2
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
The only times I've ever come across memory being exhausted in PHP is when I've had a runaway loop or infinite recursion.

It's possible you've uncovered a bug in Pear that triggers something like that, so my first thought would be to check whether you've got the latest version of Pear (and PHP). If you find there's a newer version, it might have bugfixes that help you.

Alternatively, it could be a legitimate error (albeit poorly handled) -- perhaps you've got more extensions installed than the Pear developers ever dreamt you'd need? If that's the case, are there any you could de-install? Maybe that would help.

If it does turn out that you need to allocate more memory to it, I'm not sure whether Pear would be using the settings in php.ini, since it's run from the commandline rather than as a web page. It may have its own memory size setting, which would explain the difference you noted in the reported figures. See if you can find this setting and change it. (sorry, I don't know where it is, so you'll have to hunt for it!)
 
Old 04-08-2009, 11:01 AM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
This is what I use on the server:

Code:
PEAR Version: 1.7.2
PHP Version: 5.1.6
Zend Engine Version: 2.1.0

I was hoping that I wouldn't have to update PHP just yet...
Also I don't have a lot of pear extensions installed. One or two at most.

I couldn't find the memory config for pear yet, so if you have any suggestions shoot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: incomplete write (-28 != 32768) 8388608 crc error cigtoxdoc Linux - Newbie 3 10-13-2007 03:41 PM
Fatal error: Allowed memory size of 15728640 bytes exhausted at (null):0 (tried to al Niceman2005 Linux - Software 0 03-07-2007 02:15 AM
Help!!! memory exhausted error on RedHat ES V3U6 cojo Linux - Software 4 06-01-2006 08:00 AM
Memory Exhausted? thachp Linux - Newbie 9 01-04-2006 07:16 PM
squirellmail, Fatal error: Allowed memory size exhausted illtbagu Linux - Software 6 11-08-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration