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

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

My program that generate this file 1000x 

Tested on windows: it took: 214Mo stable (no memory resource increased).

on RedHat it starts at 214Mo and finish to 4.1Gb.
{code:java}
top - 08:42:34 up 70 days, 11:26, 3 users, load average: 1.09, 1.10, 0.66
Tasks: 259 total, 1 running, 258 sleeping, 0 stopped, 0 zombie
Cpu(s): 14.3%us, 0.2%sy, 0.0%ni, 85.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.1%st
Mem: 20600384k total, 7052548k used, 13547836k free, 214040k buffers
Swap: 4063228k total, 74592k used, 3988636k free, 2160972k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14188 jservdev 20 0 6849m 4.0g 13m S 117.0 20.4 17:06.74 java
2788 root 20 0 1616m 18m 3300 S 0.7 0.1 142:28.77 python
1 root 20 0 19356 312 136 S 0.0 0.0 0:33.08 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.69 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:03.67 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:03.09 ksoftirqd/0
{code}
What is strange is that I've tested the 2.0.9 with the patch (4392) on RedHat, 
and it took only ~700Mo.

> 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
>          Components: Rendering
>    Affects Versions: 2.0.9, 2.0.15
>            Reporter: lienhardt
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: optimization
>             Fix For: 2.0.16, 3.0.0 PDFBox
>
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to