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

Shutting down an idle XWiki instance takes over 30 seconds

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: