Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1679

Memory leak in DiskPageStore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.3
    • 1.3.5
    • wicket
    • None

    Description

      No entries are removed from DiskPageStore.sessionIdToEntryMap. I guess, this should be added to the DiskPageStore.unbind(String sessionId) method:

      public void unbind(String sessionId)
      {
      // FIX: replace get() with remove()
      SessionEntry entry = (SessionEntry)sessionIdToEntryMap.get(sessionId);
      if (entry != null)
      {
      if (isSynchronous())

      { entry.unbind(); }

      else
      {
      List pages = getPagesToSaveList(sessionId);
      synchronized (pages)

      { flushPagesToSaveList(sessionId, pages); entry.unbind(); }

      pagesToSaveAll.remove(sessionId);
      }
      }
      }

      Attachments

        Activity

          People

            knopp Matej Knopp
            sfussenegger Stefan Fussenegger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified