Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15978

Shutting down an idle XWiki instance takes over 30 seconds

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Shutting down an idle XWiki instance takes over 30 seconds.

      Repeat by starting an XWiki instance containing the XWiki Standard Flavor, wait for it to become idle and then stop it again.

      I've tracked the problem down to org.xwiki.component.embed.EmbeddableComponentManager.dispose() where it repeatedly calls sortEntry(). This loops many more times than keys.size() because i jumps backwards as well as incrementing. I suggest using a sorting algorithm like Topological sorting Depth-first search instead.

       

      Attachments

        Activity

          People

            mslw Martin Simmons
            mslw Martin Simmons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: