1

I am using html2pdf on our job applications system to create PDF versions of people's application. Our server keeps crashing with memory issues. HTML2PDF is the only thing I can see that could be cause this although I am calling the correct destruct methods. Are memory leaks and issue in HTML2PDF and if so how do I counteract this?

2

What memory limit did you set on PHP?
How big are your HTML documents?
avatar
Zeroblog

« Tout homme porte sur l'épaule gauche un singe et, sur l'épaule droite, un perroquet. » — Jean Cocteau
« Moi je cherche plus de logique non plus. C'est surement pour cela que j'apprécie les Ataris, ils sont aussi logiques que moi ! » — GT Turbo

3

Memory appears to be 16M (I don't administer the server so I didnt set this) and the documents are usually about are probably around 200K, creating PDFS of about 11 page long

4

16 MB is really low (Spipu said it was the very minimum for the PHP5 version of HTML2PDF, and that was 2 years ago...). Can you ask for the memory limited to be raised to 32 MB?
avatar
Zeroblog

« Tout homme porte sur l'épaule gauche un singe et, sur l'épaule droite, un perroquet. » — Jean Cocteau
« Moi je cherche plus de logique non plus. C'est surement pour cela que j'apprécie les Ataris, ils sont aussi logiques que moi ! » — GT Turbo

5

Thanks, we've raised it now, hopefully we will see some improvement