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

Avoid serialization of untouched page after ajax request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.19.0, 7.0.0-M6, 7.0.0
    • 7.0.0, 6.21.0
    • wicket
    • None

    Description

      We run into a disc and cpu bottleneck on a wicket page with 10000+ users, that uses ajax updates via polling (AjaxSelfUpdatingTimerBehavior).

      The result of our investigation is that page store needs about 10ms for serialization, while the framework serializes the same data again and again.

      Our application doesn't touch the page, but the AbstractPageManager does:

      IManageablePage page = getRequestAdapter().getPage(id); 
      if (page != null) 
      { 
              getRequestAdapter().touch(page); 
      }
      

      Therefore the requested page is always touched, but we couldn't figure out why. If it's possbile not to touch the page here (in some cases) that would solve the problem.

      Attachments

        1. dirtycheck.tar.gz
          21 kB
          Emond Papegaaij
        2. wicket-5933.patch
          2 kB
          Andrea Del Bene
        3. wicket-touch.zip
          24 kB
          Fridolin Jackstadt

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              frido-lbm Fridolin Jackstadt
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: