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

Michael Klink commented on PDFBOX-5770:
---------------------------------------

Where is the code?

> When adding watermark to PDF, there may be a native memory leak
> ---------------------------------------------------------------
>
>                 Key: PDFBOX-5770
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5770
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: weiteFeng
>            Priority: Major
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> When using the following code to add a watermark to a PDF file, the memory 
> usage of the Java process will gradually increase, even exceeding the limit 
> of the maximum heap memory usage. When the process uses memory exceeding the 
> maximum memory of the machine, the Java process will be killed by the 
> operating system.
> When analyzing the dumped memory, I found that when the Java process occupies 
> a large amount of memory (viewed through the top command), the heap memory of 
> the process actually does not occupy too much space, so I inferred that there 
> may be a native memory leak in this code, due to I don't have a deep 
> understanding of Linux memory analysis, so I can't find the problem in this 
> code.
> I wonder if you have any suggestion.
> The following is the code I use to add watermarks to PDF:



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to