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

Adding CryptoMapper as RootRequestMapper results in OutOfMemoryError.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 8.2.0
    • None
    • wicket-core
    • None

    Description

      I created a simple Wicket reproducer, starting from a Wicket Quickstart.

      The reproducer consists of the following:

      • HomePage
      • stylesheet.css, used in HomePage via response.render(CssHeaderItem.forReference(...)).
      • MimicBrowserPageLoads: a simple java application (main method) that mimics browser requests to HomePage: it does 1 GET request for the html, and 1 GET for the css. It does this 100.000 times, clearing the cookies after each 'page load'.

      The problem

      When I remove the CryptoMapper and start jetty using the quickstart's code, adding -Xms64m -Xmx64m, all works fine: I can run MimicBrowserPageLoads, and no problems arise.
      However, when I configure CryptoMapper as the application's RootRequestMapper and start jetty, again adding -Xms64m -Xmx64m, starting MimicBrowserPageLoads will, after some time, result in OutOfMemoryError for the jetty process.

      The reproducer can be found here: https://github.com/jvanheesch/cryptomapper-outofmemoryerror

      The same problem occurs when deploying with Tomcat 9.0.14.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jvanheesch Joris van Heesch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: