ICEpdf
  1. ICEpdf
  2. PDF-218

Update Memory Manager so maxMemory is configurable.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Embedded ICEpdf component in a large application

      Description

      We have had a couple requests for the ability to set the max memory limit of the library. Currently we use Runtime.getRuntime().maxMemory(); which is ok for the standalone Viewer RI but not so great when you use the viewer component in a larger application and want to limit the amount of memory ICEpdf uses.

      Simple to address, create a new system property org.icepdf.core.maxMemory and use Runtime.getRuntime().maxMemory(); as a default value.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23984 Fri Feb 18 12:39:31 MST 2011 patrick.corless PDF-218 updated the memory manager to be more proactive about cleaning up old pages and setup a chaining structure off of page which will try and removed resources from the Library refs cache.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/MemoryManager.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/swing/PageViewComponentImpl.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Resources.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Form.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/Library.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: