![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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? Thanks! erics:~ eric$ time sudo /opt/php5/bin/pear install phing/phing 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" (version >= 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:312 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 1.5442 4568824 4. PEAR_Downloader->download(array(1)) /opt/php5/lib/php/PEAR/Command/Install.php:597 3.6874 7465424 5. PEAR_Downloader_Package->download() /opt/php5/lib/php/PEAR/Downloader.php:407 3.6991 7467816 6. PEAR_Downloader_Package->_fromUrl(string(47), string(11)) /opt/php5/lib/php/PEAR/Downloader/Package.php:240 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), long) /opt/php5/lib/php/PEAR/PackageFile.php:455 7.8207 7882016 9. Archive_Tar->listContent() /opt/php5/lib/php/PEAR/PackageFile.php:304 7.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 $_SERVER real 24m52.580s user 10m19.053s sys 4m52.025s | |||
|
| Advertisements |
| | #2 | ||
| 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" (version > >= 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:312 > 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), > array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 > 1.5442 4568824 4. PEAR_Downloader->download(array(1)) > /opt/php5/lib/php/PEAR/Command/Install.php:597 > 3.6874 7465424 5. PEAR_Downloader_Package->download() > /opt/php5/lib/php/PEAR/Downloader.php:407 > 3.6991 7467816 6. > PEAR_Downloader_Package->_fromUrl(string(47), string(11)) > /opt/php5/lib/php/PEAR/Downloader/Package.php:240 > 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), > long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 > 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), > long) /opt/php5/lib/php/PEAR/PackageFile.php:455 > 7.8207 7882016 9. Archive_Tar->listContent() > /opt/php5/lib/php/PEAR/PackageFile.php:304 > 7.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 $_SERVER > > real 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 | |||
|
| | #3 | ||
| 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" (version > > >= 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:312 > > 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), > > array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 > > 1.5442 4568824 4. PEAR_Downloader->download(array(1)) > > /opt/php5/lib/php/PEAR/Command/Install.php:597 > > 3.6874 7465424 5. PEAR_Downloader_Package->download() > > /opt/php5/lib/php/PEAR/Downloader.php:407 > > 3.6991 7467816 6. > > PEAR_Downloader_Package->_fromUrl(string(47), string(11)) > > /opt/php5/lib/php/PEAR/Downloader/Package.php:240 > > 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), > > long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 > > 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), > > long) /opt/php5/lib/php/PEAR/PackageFile.php:455 > > 7.8207 7882016 9. Archive_Tar->listContent() > > /opt/php5/lib/php/PEAR/PackageFile.php:304 > > 7.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 $_SERVER > > > > real 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 > I 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: 11 1219258 0 126.351990 8526416 Archive_Tar->_readHeader 1 /opt/php5/lib/php/Archive/Tar.php 1435 12 1220282 0 126.495887 8529688 Archive_Tar->_maliciousFilename 1 /opt/php5/lib/php/Archive/Tar.php 1258 11 1220298 0 126.514060 8527344 Archive_Tar->_jumpBlock 1 /opt/php5/lib/php/Archive/Tar.php 1580 11 1220305 0 126.514587 8527344 Archive_Tar->_readBlock 1 /opt/php5/lib/php/Archive/Tar.php 1430 There 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. | |||
|
| | #4 | ||
| On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > 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" (version > > > >= 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:312 > > > 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), > > > array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 > > > 1.5442 4568824 4. PEAR_Downloader->download(array(1)) > > > /opt/php5/lib/php/PEAR/Command/Install.php:597 > > > 3.6874 7465424 5. PEAR_Downloader_Package->download() > > > /opt/php5/lib/php/PEAR/Downloader.php:407 > > > 3.6991 7467816 6. > > > PEAR_Downloader_Package->_fromUrl(string(47), string(11)) > > > /opt/php5/lib/php/PEAR/Downloader/Package.php:240 > > > 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), > > > long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 > > > 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), > > > long) /opt/php5/lib/php/PEAR/PackageFile.php:455 > > > 7.8207 7882016 9. Archive_Tar->listContent() > > > /opt/php5/lib/php/PEAR/PackageFile.php:304 > > > 7.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 $_SERVER > > > > > > real 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 > > > > I 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: > 11 1219258 0 126.351990 8526416 > Archive_Tar->_readHeader 1 > /opt/php5/lib/php/Archive/Tar.php 1435 > 12 1220282 0 126.495887 8529688 > Archive_Tar->_maliciousFilename 1 > /opt/php5/lib/php/Archive/Tar.php 1258 > 11 1220298 0 126.514060 8527344 > Archive_Tar->_jumpBlock 1 > /opt/php5/lib/php/Archive/Tar.php 1580 > 11 1220305 0 126.514587 8527344 > Archive_Tar->_readBlock 1 > /opt/php5/lib/php/Archive/Tar.php 1430 > > There 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. > Well, it definately should not be. What PHP version? What OS? -- Justin Patrin | |||
|
| | #5 | ||
| On 5/9/07, Justin Patrin <papercrane@gmail.com> wrote: > On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > > 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" (version > > > > >= 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:312 > > > > 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), > > > > array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 > > > > 1.5442 4568824 4. PEAR_Downloader->download(array(1)) > > > > /opt/php5/lib/php/PEAR/Command/Install.php:597 > > > > 3.6874 7465424 5. PEAR_Downloader_Package->download() > > > > /opt/php5/lib/php/PEAR/Downloader.php:407 > > > > 3.6991 7467816 6. > > > > PEAR_Downloader_Package->_fromUrl(string(47), string(11)) > > > > /opt/php5/lib/php/PEAR/Downloader/Package.php:240 > > > > 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), > > > > long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 > > > > 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), > > > > long) /opt/php5/lib/php/PEAR/PackageFile.php:455 > > > > 7.8207 7882016 9. Archive_Tar->listContent() > > > > /opt/php5/lib/php/PEAR/PackageFile.php:304 > > > > 7.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 $_SERVER > > > > > > > > real 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 > > > > > > > I 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: > > 11 1219258 0 126.351990 8526416 > > Archive_Tar->_readHeader 1 > > /opt/php5/lib/php/Archive/Tar.php 1435 > > 12 1220282 0 126.495887 8529688 > > Archive_Tar->_maliciousFilename 1 > > /opt/php5/lib/php/Archive/Tar.php 1258 > > 11 1220298 0 126.514060 8527344 > > Archive_Tar->_jumpBlock 1 > > /opt/php5/lib/php/Archive/Tar.php 1580 > > 11 1220305 0 126.514587 8527344 > > Archive_Tar->_readBlock 1 > > /opt/php5/lib/php/Archive/Tar.php 1430 > > > > There 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. > > > > Well, it definately should not be. What PHP version? What OS? > > -- > Justin Patrin > Mac OS X 10.4.9 PowerPC PHP 5.2.2 (cli) (built: May 9 2007 10:47:20) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Xdebug v2.0.0RC3, Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, by Derick Rethans | |||
|
| | #6 | ||
| On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > On 5/9/07, Justin Patrin <papercrane@gmail.com> wrote: > > On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > > > 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" (version > > > > > >= 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:312 > > > > > 1.4362 2883160 3. PEAR_Command_Install->doInstall(string(7), > > > > > array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 > > > > > 1.5442 4568824 4. PEAR_Downloader->download(array(1)) > > > > > /opt/php5/lib/php/PEAR/Command/Install.php:597 > > > > > 3.6874 7465424 5. PEAR_Downloader_Package->download() > > > > > /opt/php5/lib/php/PEAR/Downloader.php:407 > > > > > 3.6991 7467816 6. > > > > > PEAR_Downloader_Package->_fromUrl(string(47), string(11)) > > > > > /opt/php5/lib/php/PEAR/Downloader/Package.php:240 > > > > > 7.7769 7472344 7. PEAR_PackageFile->fromAnyFile(string(36), > > > > > long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 > > > > > 7.7775 7473744 8. PEAR_PackageFile->fromTgzFile(string(36), > > > > > long) /opt/php5/lib/php/PEAR/PackageFile.php:455 > > > > > 7.8207 7882016 9. Archive_Tar->listContent() > > > > > /opt/php5/lib/php/PEAR/PackageFile.php:304 > > > > > 7.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 $_SERVER > > > > > > > > > > real 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 > > > > > > > > > > I 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: > > > 11 1219258 0 126.351990 8526416 > > > Archive_Tar->_readHeader 1 > > > /opt/php5/lib/php/Archive/Tar.php 1435 > > > 12 1220282 0 126.495887 8529688 > > > Archive_Tar->_maliciousFilename 1 > > > /opt/php5/lib/php/Archive/Tar.php 1258 > > > 11 1220298 0 126.514060 8527344 > > > Archive_Tar->_jumpBlock 1 > > > /opt/php5/lib/php/Archive/Tar.php 1580 > > > 11 1220305 0 126.514587 8527344 > > > Archive_Tar->_readBlock 1 > > > /opt/php5/lib/php/Archive/Tar.php 1430 > > > > > > There 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. > > > > > > > Well, it definately should not be. What PHP version? What OS? > > > > -- > > Justin Patrin > > > > Mac OS X 10.4.9 PowerPC > > PHP 5.2.2 (cli) (built: May 9 2007 10:47:20) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > with Xdebug v2.0.0RC3, Copyright (c) 2002, 2003, 2004, 2005, 2006, > 2007, by Derick Rethans > The PEAR upgrade failed after 40 minutes. Starting to download PEAR-1.5.4.tgz (293,070 bytes) ..............................................done : 293,070 bytes Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 2568 bytes) in /opt/php5/lib/php/Archive/Tar.php on line 1435 Call Stack: 0.0057 242952 1. {main}() /opt/php5/lib/php/pearcmd.php:0 1.2895 2882208 2. PEAR_Command_Common->run(string(7), array(0), array(1)) /opt/php5/lib/php/pearcmd.php:312 1.2895 2882984 3. PEAR_Command_Install->doInstall(string(7), array(0), array(1)) /opt/php5/lib/php/PEAR/Command/Common.php:285 1.3716 4568856 4. PEAR_Downloader->download(array(1)) /opt/php5/lib/php/PEAR/Command/Install.php:597 2.6425 7043136 5. PEAR_Downloader_Package->download() /opt/php5/lib/php/PEAR/Downloader.php:407 2.6544 7045312 6. PEAR_Downloader_Package->_fromUrl(string(38), string(9)) /opt/php5/lib/php/PEAR/Downloader/Package.php:240 4.9620 7049976 7. PEAR_PackageFile->fromAnyFile(string(30), long) /opt/php5/lib/php/PEAR/Downloader/Package.php:1468 4.9631 7051376 8. PEAR_PackageFile->fromTgzFile(string(30), long) /opt/php5/lib/php/PEAR/PackageFile.php:455 5.1028 7454800 9. Archive_Tar->listContent() /opt/php5/lib/php/PEAR/PackageFile.php:304 5.1126 7454800 10. Archive_Tar->_extractList(string(0), array(14427), string(4), string(0), string(0)) /opt/php5/lib/php/Archive/Tar.php:220 2493.3858 20966480 11. Archive_Tar->_readHeader(string(512), array(9)) /opt/php5/lib/php/Archive/Tar.php:1435 | |||
|
| | #7 | ||
| On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > > > Mac OS X 10.4.9 PowerPC > > > > PHP 5.2.2 (cli) (built: May 9 2007 10:47:20) > > Copyright (c) 1997-2007 The PHP Group > > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > > with Xdebug v2.0.0RC3, Copyright (c) 2002, 2003, 2004, 2005, 2006, > > 2007, by Derick Rethans > > > > The PEAR upgrade failed after 40 minutes. > There was a bug in 5.2.1 (that I never quite put my finger on) that caused one part of PhpDocumentor to enter an infinite loop, which is what this scenario sounds like to me. I say I never put my finger on the bug because on the bug reports that sounded similar, they never said they could find a problem. All the bugs I saw just ended up saying "well, it's suddenly good in the XXX snapshot, so..." I wonder if that snapshot-fixed bug might have still found its way into 5.2.2. Any chance you have a 5.1.x environment to try? -- CRB Let me introduce you to my very own DMCA-protected encryption key: BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5 (compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155) | |||
|
| | #8 | ||
| On 5/9/07, Chuck Burgess <demon.gene@gmail.com> wrote: > On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > > > Mac OS X 10.4.9 PowerPC > > > > > > PHP 5.2.2 (cli) (built: May 9 2007 10:47:20) > > > Copyright (c) 1997-2007 The PHP Group > > > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > > > with Xdebug v2.0.0RC3, Copyright (c) 2002, 2003, 2004, 2005, 2006, > > > 2007, by Derick Rethans > > > > > > > The PEAR upgrade failed after 40 minutes. > > > > There was a bug in 5.2.1 (that I never quite put my finger on) that caused > one part of PhpDocumentor to enter an infinite loop, which is what this > scenario sounds like to me. I say I never put my finger on the bug because > on the bug reports that sounded similar, they never said they could find a > problem. All the bugs I saw just ended up saying "well, it's suddenly good > in the XXX snapshot, so..." > > I wonder if that snapshot-fixed bug might have still found its way into > 5.2.2. Any chance you have a 5.1.x environment to try? > > -- > CRB > > Let me introduce you to my very own DMCA-protected encryption key: > BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5 > (compliments of Freedom-to-Tinker > http://www.freedom-to-tinker.com/?p=1155 ) > I don't actually have any 5.1.x's left. I could download it and install it if you really thought it'd provide some useful information. I do however have 4.4.7 installed. After running sudo /opt/php/bin/pear upgrade pear I looked at the trace after a bit and it is doing the same ord/substr parsing. I'm going to assume it will take 40 minutes so I am just going to send this reply now. | |||
|
| | #9 | ||
| On 5/9/07, Eric Butera <digital.tarsier@gmail.com> wrote: > > I do however have 4.4.7 installed. After running sudo > /opt/php/bin/pear upgrade pear I looked at the trace after a bit and > it is doing the same ord/substr parsing. I'm going to assume it will > take 40 minutes so I am just going to send this reply now. > Sounds like it isn't PHP version-specific then, so that rules that out... -- CRB Let me introduce you to my very own DMCA-protected encryption key: BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5 (compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155) | |||
|
| | #10 | ||
| I tried another test. I downloaded the PEAR base tgz file and put it on my computer via wget. Then I looked in the Archive_Tar.txt file for a simple example: <?php require_once 'Archive/Tar.php'; $tar_object = new Archive_Tar("PEAR-1.5.4.tgz", 'gz'); $v_list = $tar_object->listContent(); if ($v_list != 0) { for ($i=0; $i<sizeof($v_list); $i++) { echo "Filename :'".$v_list[$i]['filename']."'\n"; echo " .size :'".$v_list[$i]['size']."' "; echo " .mtime :'".$v_list[$i]['mtime']."' (".date("l dS of F Y h:i:s A", $v_list[$i]['mtime']).") "; echo " .mode :'".$v_list[$i]['mode']."' "; echo " .uid :'".$v_list[$i]['uid']."' "; echo " .gid :'".$v_list[$i]['gid']."' "; echo " .typeflag :'".$v_list[$i]['typeflag']."' "; echo " \n"; } } ?> That ran in 13.5 seconds. Yet 'pear upgrade pear' took over 40 minutes before running out of memory. Anybody with more PEAR internals experience know where the problem could be? | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: crash, eventual, install, memory, pear, slow |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [PEAR] pear upgrade | Lorenzo Alberton | Pear | 1 | 05-20-2007 5:34 PM |
| Bug #9925 install failed | Charles Sheinin | Pear | 1 | 05-20-2007 5:34 PM |
| [PEAR] Possible serious memory leak in MDB2 | Lorenzo Alberton | Pear | 1 | 05-20-2007 5:34 PM |
| Why is this script so slow? | Tom | PHP | 0 | 05-20-2007 5:33 PM |
| Featured Websites | ||||
|