apigen/apigen — Issue #116: Running out of memory
Author: lencioni
Created: 2012-03-07 20:21:11+00:00
State: open

I'm trying to generate documentation for a lot of PHP code, and when ApiGen gets to the part where it generates the documentation to the destination directory, it immediately fails because it is unable to allocate more memory. With debug on, I see this message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /usr/share/pear/Texy/libs/DTD.php on line 345
exception 'Nette\FatalErrorException' with message 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes)' in /usr/share/pear/Texy/libs/DTD.php:345
Stack trace:
#0 [internal function]: Nette\Diagnostics\Debugger::_shutdownHandler()
#1 {main}

Ideally, it would be great if ApiGen didn't consume as much memory, but if I could specify a memory limit in the config file, I should be able to generate my documentation, but I didn't see any way to do that. Any suggestions?