Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11251

Apache Sling Post Servlet consumes too much resources during content ingestion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Starter 12
    • None
    • Servlets
    • None
    • Mac OS, OpenJDK 1.8, Intel I9, 16gb RAM.

    Description

      I am testing performances of Apache Sling 12, configured with Oak Segment Store, started with the -Xmx4g parameter. I'm using a multi-threaded Python script (I tried with 30 threads down to 5 concurrent threads). The tool loads thousands of contents on new oak:Unstructured nodes using the standard Sling POST servlet. Before to start the import I stopped the Lucene bundle. Initially performances are good (about 200 new documents/sec). Soon, after the tool has ingested about 20k new nodes, the speed drops to a few nodes per second. I analyzed the JVM and noticed that the memory allocated for some threads grows by several GBs without ever going down (see attached images). If I stop the import tool, the situation does not change. The only way to solve this problem is to turn off the Sling instance and restart it. Is it normal for threads and in particular for the threads that implement the POST servlet, to acquire resources that are never released? I am available to reproduce this issue during a Teams / Google Meet.

      Attachments

        1. image-2022-04-05-09-09-08-725.png
          978 kB
          Yuri Simione
        2. image-2022-04-05-09-19-55-925.png
          200 kB
          Yuri Simione

        Activity

          People

            Unassigned Unassigned
            artika4biz Yuri Simione
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: