Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3130

Reduce memory footprint of StoredRecordHeader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.4.1.3
    • 10.3.3.0, 10.4.1.3, 10.5.1.1
    • Store
    • None

    Description

      Derby's page cache often has a memory footprint that is much larger than pageSize*pageCacheSize. One large contributor to the footprint is the array of StoredPageHeader objects in BasePage. The memory consumed by these objects can be as large as, and sometimes even larger than, the byte arrays containing the raw page data. (See for instance http://www.nabble.com/How-much-derby-need-memory--tf3307655.html.) Reducing the size of the StoredPageHeader objects could therefore reduce Derby's memory footprint significantly, especially if the page cache is large and contains many pages from tables with small records or from indices.

      Attachments

        1. srh.diff
          13 kB
          Knut Anders Hatlen
        2. SmallRecordsTest.java
          0.9 kB
          Knut Anders Hatlen
        3. d3130-1a.diff
          16 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: