[ 
https://issues.apache.org/jira/browse/PDFBOX-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16825245#comment-16825245
 ] 

lienhardt commented on PDFBOX-4525:
-----------------------------------

Thanks for your reactivity. I will test that.

The principal problem is that the Tomcat crash in reason that when we pass this 
file in pdfbox the memory is not deallocated. The warn message is secondary for 
us, because we use pdfbox to generate a small image of the first page of the 
PDF.

I've just tried the patch given in the PDFBOX-4392 and miracle I've no more 
memory problem. The memory stay between 700Mb and 1.1Gb. Could you see if your 
commit resolve this problem of memory ?

Thanks.

> PDF completely blow up the RAM on RedHat
> ----------------------------------------
>
>                 Key: PDFBOX-4525
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4525
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>            Reporter: lienhardt
>            Priority: Major
>         Attachments: crash_redhat.pdf, testPdfBox.jar
>
>
> We received a PDF that has completly killed the Tomcat on a production 
> application.
> The symptoms are the same as PDFBOX-4392, but the PDF file is different.
> Messages: 6000 times
> {code:java}
> avr. 24, 2019 3:02:33 PM org.apache.pdfbox.pdmodel.graphics.color.PDICCBased 
> ensureDisplayProfile
> AVERTISSEMENT: ICC profile is Perceptual, ignoring, treating as Display class
> {code}
> We test it on RedHat5 VM in develop and reproduce it with a sample test 
> program that read the PDF, and create a small image. The program is looping 
> and after the 4th reading it took 20Gb of memory and was killed by the OS to 
> prevent the crash of the computer.
> I've tried with version 2.0.15 and the problem still be the same.
> We can test it with java -jar testPdfBox.jar crash_redhat.pdf



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to