You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "weiteFeng (Jira)" <ji...@apache.org> on 2024/02/18 08:22:00 UTC
[jira] [Closed] (PDFBOX-5770) When adding watermark to PDF, there may be a native memory leak
[ https://issues.apache.org/jira/browse/PDFBOX-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
weiteFeng closed PDFBOX-5770.
-----------------------------
Resolution: Duplicate
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org