You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "gee (JIRA)" <ji...@apache.org> on 2014/08/30 16:57:53 UTC

[jira] [Created] (PDFBOX-2301) RandomAccessBuffer consumes too much memory.

gee created PDFBOX-2301:
---------------------------

             Summary: RandomAccessBuffer consumes too much memory.
                 Key: PDFBOX-2301
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2301
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
            Reporter: gee


I think you'd better rely on the disk cache management on OS. unless you endeavour to improve RandomAccessBuffer with better implementation.
Class Name                                                                                                                                                                                                                                                                                                         | Shallow Heap | Retained Heap
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
org.apache.pdfbox.cos.COSObject @ 0x5ad4940                                                                                                                                                                                                                                                                        |           24 |     8,187,264
|- <class> class org.apache.pdfbox.cos.COSObject @ 0x58c4020                                                                                                                                                                                                                                                       |            0 |             0
|- generationNumber org.apache.pdfbox.cos.COSInteger @ 0x5ad0080                                                                                                                                                                                                                                                   |           24 |            24
|- baseObject org.apache.pdfbox.cos.COSStream @ 0x5b25ea0                                                                                                                                                                                                                                                          |           32 |     8,187,216
|  |- <class> class org.apache.pdfbox.cos.COSStream @ 0x58c3e00                                                                                                                                                                                                                                                    |            8 |             8
|  |- items java.util.LinkedHashMap @ 0x5b2a0f0                                                                                                                                                                                                                                                                    |           56 |           552
|  |- file org.apache.pdfbox.io.RandomAccessBuffer @ 0x5b2a128                                                                                                                                                                                                                                                     |           48 |     8,186,528
|  |  |- <class> class org.apache.pdfbox.io.RandomAccessBuffer @ 0x5ad2b00                                                                                                                                                                                                                                         |            8 |             8
|  |  |- currentBuffer byte[16384] @ 0x590f360      16,400 |        16,400
|  |  |- bufferList java.util.ArrayList @ 0x5b2e200                                                                                                                                                                                                                                                                |           24 |     8,170,080
|  |  '- Total: 3 entries                                                                                                                                                                                                                                                                                          |              |              
|  |- filteredStream org.apache.pdfbox.io.RandomAccessFileOutputStream @ 0x5b2a158                                                                                                                                                                                                                                 |           32 |            32
|  |- decodeResult org.apache.pdfbox.filter.DecodeResult @ 0xa65f618                                                                                                                                                                                                                                               |           16 |            16
|  |- unFilteredStream org.apache.pdfbox.io.RandomAccessFileOutputStream @ 0xa71ab18                                                                                                                                                                                                                               |           32 |            32
|  '- Total: 6 entries                                                                                                                                                                                                                                                                                             |              |              
|- objectNumber org.apache.pdfbox.cos.COSInteger @ 0x5b25ec0                                                                                                                                                                                                                                                       |           24 |            24
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




--
This message was sent by Atlassian JIRA
(v6.2#6252)