Closed GoogleCodeExporter closed 9 years ago
I would guess you're maybe exceeding the memory allocation allowed by PHP. It's
hard to say without knowing why the script stops. Does PHP throw any errors?
It's also possible you're running into a bug due to your document structure.
But we can't tell that unless we see the actual HTML that dompdf is trying to
render.
One thing you can try is destroying the dompdf object after use. It may help in
freeing up some memory. 0.6.0 does have some level of object destruction
cleanup. Unfortunately you may not see a lot of improvement unless you're using
PHP 5.3.x.
For PHP 5.2.x what we've found in the past with using dompdf in a loop was that
you should put dompdf into an external script which you call using exec(). Your
memory usage and rendering speed are typically better using this method.
Original comment by eclecticgeek
on 12 Jun 2012 at 6:46
[deleted comment]
Using exec() was the trick. Thank you.
Original comment by lgg.wett...@gmail.com
on 13 Jun 2012 at 1:38
Glad that worked.
Marking as invalid because this isn't technically a bug in dompdf, it's more
due to deficiencies in garbage collection in PHP. There are some improvements
we can make, particularly with PHP 5.3 installations. I don't know that we'll
be able to fully address the memory load issues for the next release, but we
are working on it.
Original comment by eclecticgeek
on 13 Jun 2012 at 3:17
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
lgg.wett...@gmail.com
on 12 Jun 2012 at 5:39Attachments: