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

DiskDataStore to use multi-level directory structure to avoid slowness when thousands of sessions are active.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.5
    • 1.5.6, 6.0.0-beta2
    • wicket
    • None
    • ext3, NTFS, and common FSs in general.

    Description

      If the number of sessions opened rises to thousands, DiskDataStore, which is default, doesn't scale, because it creates one dir for each session, and most filesystems don't perform well with large number of records in a dir. More, there's a hard limit e.g. for ext3 it's 31998.

      So I suggest to make it multi-level - simply, instead of "tmp/abcdef" it would be "tmp/a/b/cdef", where number of levels added would be configurable.

      Attachments

        1. fix-WICKET-4478.patch
          1 kB
          Ondra Žižka

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              pekarna Ondra Žižka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: