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

Andreas Lehmkühler commented on PDFBOX-5731:
--------------------------------------------

{quote}hi!Is there any error that occurs when I execute 
COSName.clearResources() when using PDFBox to convert an image or add a 
watermark? When is it safe to execute COSName.clearResources()?{quote}
That method is what you are looking for. You may want to call 
{{COSName.clearResources()}} from time to time to clear the cache as the 
exactly as the javadoc proposes for long running environment. The underlying 
map is synchonized so that you should not call the method to often to avoid 
dead locks

> org.apache.pdfbox.cos.COSName#nameMap There is a memory leak problem.
> ---------------------------------------------------------------------
>
>                 Key: PDFBOX-5731
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5731
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.30, 3.0.1 PDFBox
>            Reporter: liu
>            Priority: Major
>         Attachments: image-2023-12-08-16-02-12-293.png, screenshot-1.png
>
>
>  !image-2023-12-08-16-02-12-293.png! 
>  !screenshot-1.png! 



--
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