[
https://issues.apache.org/jira/browse/PDFBOX-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17562797#comment-17562797
]
Abhishek edited comment on PDFBOX-5472 at 7/5/22 6:33 PM:
----------------------------------------------------------
Thanks [~lehmi] [~tilman]
With help of unix lifecycle we figured out that those file are being held up by
Jboss, its creating the file but not able to release making them inaccessible
by any other program.
As a workaround solution we decided not to write those 100s of temp file on the
disk.
Instead
1) will create the PDDocument object corresponding to each file and keep that
in a memory under array.
2) once all the files are processed will have an array to loop through that
contains N+ PDDcoument objects
3) while we loop we keep merging those PDdocuments to form one final at the end
of the loop
4) The final object will be save on the disk
The problem with this approach is its taking to much of memory to store the
PDdocument object while processing.
do you suggest how can we optimize this approach?
was (Author: JIRAUSER292237):
Thanks [~lehmi] [~tilman]
With help of unix lifecycle we figured out that those file are being held up by
Jboss, its creating the file but not able to release making them inaccessible
by any other program.
As a workaround solution we decided not to write those 100s of temp file on the
disk.
Instead
1) will create the PDDocument object corresponding to each file and keep that
in a memory under array.
2) once all the files are processed will have an array to loop through that
contains N+ PDDcoument objects
3) while we loop we keep merging those PDdocuments to form one final at the end
of the loop
4) The final object will be save on the disk
The problem with this approach is its taking to much of memory to store the
PDdocument object while processing.
> PDDocument save(File) is used to create file in unix. But file is being
> created with link count as 0
> ----------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-5472
> URL: https://issues.apache.org/jira/browse/PDFBOX-5472
> Project: PDFBox
> Issue Type: Bug
> Reporter: Abhishek
> Priority: Major
>
> PDDocument save(File) is used to create file in unix.
> But file is being created with link count as 0.
> This method is being called in a loop, to create > 10 files at a time. But we
> notices that first or first two files are always being created with 0 link
> count in unix file system.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]