Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-1979 Performance: Worfklow sitemap display is very slow even after having fully loaded workflow status: getMainLinkObject is the guilty one
  3. JAHIA-2046

SP2 performance bottleneck: modifiying the type of workflow on a leaf takes dozens of minutes - DB mainly impacted by WorkflowService.getUnlinkedContentObjects method

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Critical
    • WCM 5.0 SP2
    • WCM 5.0 SP2
    • None
    • SP2 17554

    Description

      Hi Thomas,

      I saw yestereday your committ regarding some workflow optimization for the sitemap display. Indeed I just tested them on the 10'000 pages DB and the second access looks like quite better (and the third one is even better). I know only have some problems with the Zimbra Javascript which really takes time and use the local CPU in order to display complex trees. This gives a "feeling" of being slow which we will need to look at.

      However I know have another problem when changing a type of workflow on a leaf object. On the 10'000 pages, I went on the main_content of page 2 (so should be a leaf of our Jahai tree as there is no sub-objects) and modfied the default workflow (no workflow) to the direct workflow + break the workflow inheritance on this page (quite a simple request that users will do a lot = putting a distinct workflow on a news or similar actions).

      The process is running for the last 20 minutes. My DB is on another server and is running at 100%. My JVM is doing nearly nothing (5%).

      So I do not understand why we need to parse the whole tree or modify half the DB in order to put a distinct workflow on a single container which represent a leaf in our tree (I would understand it if I modified the workflow type of the home page and such a change would have impacted the whole 10'000 pages). So what the problem here?

      Else, as mentionned in another JIRA for the SP2, we really need to put such time consuming command on the dedicated processing server as no user will wait for 20 minutes before closing his pop-up or killing his browser.

      TestRail: Results

        Attachments

          1. jamon_after_1_hour.jpg
            jamon_after_1_hour.jpg
            557 kB
          2. Jamon_at_the_end.jpg
            Jamon_at_the_end.jpg
            577 kB
          3. jconsole_after_1_hour.jpg
            jconsole_after_1_hour.jpg
            168 kB
          4. jconsole.jpg
            jconsole.jpg
            163 kB
          5. ongoing_jamon.jpg
            ongoing_jamon.jpg
            551 kB

          Activity

            People

              tdraier_old Thomas Draier (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      WCM 5.0 SP2