weiteFeng created PDFBOX-5770:
---------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]