|
List Info
Thread: Memory leak for large codebase?
|
|
| Memory leak for large codebase? |

|
2007-02-09 08:52:38 |
Hi folks
I'm one of the core developers of Limb framework and some
time ago we
started documenting API using excellent PhpDocumentor
library(thank
you guys, it's just amazing!). Everything worked just fine
for
separate packages, however once we tried to generate
documentation for
the whole framework we faced "memory exhausted
error" :( We tried to
increase memory limit up to 256Mb but to no avail, the error
was still
present:
$phpdoc -d limb -t www -q on
Fatal error: Allowed memory size of 268435456 bytes
exhausted (tried
to allocate 1024 bytes) in
/usr/share/php/PhpDocumentor/phpDocumentor/Converters/HTML/f
rames/HTMLframesConverter.inc
on line 1625
Here's what we're using:
1) PhpDocumentor-1.3.1 stable installed via PEAR
2) PHP 5.1.6-pl6-gentoo(upgrading to PHP-5.2.x is not an
option yet :( )
We tried building documentation for each package just to
make sure it
wasn't any particular package the root of the problem and it
worked
just fine. We could have separate documentation for each
package but
in this case we won't have nice cross reference links and
other
goodies.
Any ideas what can be causing this error? I had a look at
HTMLframesConverter.inc but there's nothing suspicious....
Thank you
for any help!
--
Best regards, Pavel
--
LIMB - http://limb-project.com
Bureau of Information Technologies - http://www.bit-creative.c
om
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Phpdocu-general mailing list
Phpdocu-general lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpdocu
-general
|
|
| Re: Memory leak for large codebase? |

|
2007-02-09 09:42:25 |
|
Hello Pavel,
If you can increase the memory_limit setting in your php.ini file to something far higher than 256MB, you may be able to avoid this error. There is code in PhpDocumentor that specifically checks that value and insists on a minimum ceiling of 256MB. I think
php.ini defaults this value to something tiny, like 8MB. If your machine has enough RAM, try setting it to 512MB or higher. I keep mine set at 1024MB on my 4G RAM machine, to avoid hitting the memory usage ceiling.
The next version of PhpDocumentor will probably have the option of setting a specific memory_limit value in the phpDocumentor.ini file, avoiding having to touch the php.ini file just for PhpDocumentor usage. Let me know if modifying the
php.ini value doesn't help. I can point you to the SourceForge patches that implement the memory_limit in phpDocumentor.ini and you can try them out. Chuck
On 2/9/07,
Pavel Shevaev < pacha.shevaev gmail.com">pacha.shevaev gmail.com> wrote:
Hi folks
I39;m one of the core developers of Limb framework and some time ago we started documenting API using excellent PhpDocumentor library(thank you guys, it's just amazing!). Everything worked just fine for
separate packages, however once we tried to generate documentation for the whole framework we faced "memory exhausted error" :( We tried to increase memory limit up to 256Mb but to no avail, the error was still
present:
$phpdoc -d limb -t www -q on
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1024 bytes) in /usr/share/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc
on line 1625
Here's what we're using:
1) PhpDocumentor-1.3.1 stable installed via PEAR 2) PHP 5.1.6-pl6-gentoo(upgrading to PHP-5.2.x is not an option yet :( )
We tried building documentation for each package just to make sure it
wasn't any particular package the root of the problem and it worked just fine. We could have separate documentation for each package but in this case we won't have nice cross reference links and other
goodies.
Any ideas what can be causing this error? I had a look at HTMLframesConverter.inc but there's nothing suspicious.... Thank you for any help!
-- Best regards, Pavel -- LIMB -
http://limb-project.com Bureau of Information Technologies - http://www.bit-creative.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________
Phpdocu-general mailing list Phpdocu-general lists.sourceforge.net">Phpdocu-general lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpdocu-general
|
| Re: Memory leak for large codebase? |

|
2007-02-09 10:21:32 |
On 2/9/07, Chuck Burgess <demon.gene gmail.com> wrote:
> Hello Pavel,
> If you can increase the memory_limit setting in your
php.ini file to
> something far higher than 256MB, you may be able to
avoid this error. There
> is code in PhpDocumentor that specifically checks that
value and insists on
> a minimum ceiling of 256MB. I think php.ini defaults
this value to
> something tiny, like 8MB. If your machine has enough
RAM, try setting it to
> 512MB or higher. I keep mine set at 1024MB on my 4G
RAM machine, to avoid
> hitting the memory usage ceiling.
Oh, sorry for the noise it did the trick... Thanks!
--
Best regards, Pavel
--
LIMB - http://limb-project.com
Bureau of Information Technologies - http://www.bit-creative.c
om
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Phpdocu-general mailing list
Phpdocu-general lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpdocu
-general
|
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|