Re: PEAR install slow & eventual memory crash
| From: | Eric Butera | Date: | Wed, 09 May 2007 16:47:37 +0000 |
| Subject: | Re: PEAR install slow & eventual memory crash | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27250@lists.php.net to get a copy of this message | ||
On 5/9/07, Justin Patrin <papercrane@gmail.com> wrote:
On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: Is there some sort of php extension I can install to make this thing work faster? At the time of death it was at 24 minutes and who knows how long it really would have taken. I realize there is a memory crash and I could up the php memory limit, but how much is really needed to install a 397k file? What version of PEAR do you have installed? Have you tried "pear upgrade pear" and seeing of that helps? Thanks! erics:~ eric$ time sudo /opt/php5/bin/pear install phing/phing It's possible that phing is packaging an awful lot (too much) in a single package and that it just requires more memory. There's no real reason it should take 24 minutes, however, unless the download was what took most of that time. I suggest upgrading PEAR and trying again. If that doesn't work try upping your memory limit. If it still doesn't work you may have found an inifinite loop. Password: Did not download optional dependencies: pear/VersionControl_SVN, pear/PHPUnit2, pear/PhpDocumentor, pear/Xdebug, pear/PEAR_PackageFileManager, use --alldeps to download automatically phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.3.0alpha1) phing/phing can optionally use package "pear/PHPUnit2" (version >= 2.3.0) phing/phing can optionally use package "pear/PhpDocumentor" (versionI know the time is spent in Archive/Tar.php. I have Xdebug installed and tailed the trace log it can write and I see this:= 1.3.0RC3)phing/phing can optionally use package "pear/Xdebug" (version >= 2.0.0beta2) phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2) downloading phing-2.3.0beta1.tgz ... Starting to download phing-2.3.0beta1.tgz (397,990 bytes) .................................................................................done: 397,990 bytes Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 16 bytes) in /opt/php5/lib/php/Archive/Tar.php on line 1239 Call Stack:0.0500 242976 1. {main}() /opt/php5/lib/php/pearcmd.php:0 1.4361 2882384 2. PEAR_Command_Common->run(string(7),array(0), array(1)) /opt/php5/lib/php/pearcmd.php:3121.4362 2883160 3. PEAR_Command_Install->doInstall(string(7),array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:2851.5442 4568824 4. PEAR_Downloader->download(array(1))/opt/php5/lib/php/PEAR/Command/Install.php:5973.6874 7465424 5. PEAR_Downloader_Package->download()/opt/php5/lib/php/PEAR/Downloader.php:4073.6991 7467816 6.PEAR_Downloader_Package->_fromUrl(string(47), string(11)) /opt/php5/lib/php/PEAR/Downloader/Package.php:2407.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36),long) /opt/php5/lib/php/PEAR/Downloader/Package.php:14687.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36),long) /opt/php5/lib/php/PEAR/PackageFile.php:4557.8207 7882016 9. Archive_Tar->listContent()/opt/php5/lib/php/PEAR/PackageFile.php:3047.8215 7882080 10. Archive_Tar->_extractList(string(0),array(13296), string(4), string(0), string(0)) /opt/php5/lib/php/Archive/Tar.php:220 1487.9916 20965832 11. Archive_Tar->_readHeader(string(512), array(9)) /opt/php5/lib/php/Archive/Tar.php:1435 1488.0680 20968728 12. unpack(string(137), string(512)) /opt/php5/lib/php/Archive/Tar.php:1239 Dump $_SERVERreal 24m52.580s user 10m19.053s sys 4m52.025s-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Justin Patrin
11 1219258 0 126.351990 8526416 Archive_Tar->_readHeader 1 /opt/php5/lib/php/Archive/Tar.php 1435 12 1220282 0 126.495887 8529688Archive_Tar->_maliciousFilename 1
/opt/php5/lib/php/Archive/Tar.php 1258 11 1220298 0 126.514060 8527344Archive_Tar->_jumpBlock 1
/opt/php5/lib/php/Archive/Tar.php 1580 11 1220305 0 126.514587 8527344Archive_Tar->_readBlock 1
/opt/php5/lib/php/Archive/Tar.php 1430There are thousands of these calls. Also here is the text straight from pear list: PEAR 1.5.1 stable. I'm trying to upgrade, but the Archive/Tar.php is just going to process the new package file (PEAR-1.5.4.tgz (293,070 bytes)) the same exact way. And seeing that it is close to 300k I'm sure it will fail after 20+ minutes also.