[
https://issues.apache.org/jira/browse/PDFBOX-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17802082#comment-17802082
]
Andreas Lehmkühler commented on PDFBOX-5731:
--------------------------------------------
[~axh] I had a look at your patches for 2.0.x and 3.0.x and I don't like the
idea of having an always running thread cleaning up possible no longer used
COSName instances. IMHO we don't need to clean up those instances as fast as
possible and more important such a solution increases the chance to slow down
the processing speed of bigger installations and in the worst case we might run
into a dead lock.
I'd prefer a task which is called periodically, e.g. every 5 minutes.
> 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
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 4.0.0
>
> Attachments: COSName.java,
> PDFBOX-5731_clear_out_unused_COSName_instances_automatically_PDFBOX2.patch,
> PDFBox5731_clear_out_unused_COSName_instances_automatically_PDFBOX3.patch,
> attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically.patch,
>
> attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_2.patch,
>
> attempted_fix_for_PDFBOX-5731__clear_out_unused_COSName_instances_automatically_using_cleaner.patch,
> image-2023-12-08-16-02-12-293.png, image-2023-12-13-17-04-22-073.png,
> image-2023-12-14-18-10-14-278.png, screenshot-1.png, screenshot-2.png,
> screenshot-3.png, screenshot-4.png, screenshot-5.png, screenshot-6.png,
> screenshot-8.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: [email protected]
For additional commands, e-mail: [email protected]