AEM slow down when copy node

Avatar

Avatar

rohitm58172886

Avatar

rohitm58172886

rohitm58172886

04-07-2019

Hi,

     Programatically,I am copy some nodes(source node) and paste it on under parent node(destination node).When this process executing AEM consume more cpu usage its nearly goes 90% so AEM Slow down.

Code

          import javax.jcr.Session;

          import javax.jcr.Workspace;

          import org.apache.sling.jcr.api.SlingRepository;

          .

          /**************Some Code**************/

               Session session = repository.loginAdministrative(null);

               Workspace ws = session.getWorkspace();

               ws.copy(sourceNodepath, ParentNodepath);

          /***********Some Code****************/

Thanx

View Entire Topic

Avatar

Avatar

yanirac19051392

Employee

Avatar

yanirac19051392

Employee

yanirac19051392
Employee

04-07-2019

Move/copy can be an expensive operation.  You should take threaddumps [1] to see what's taking so long and perhaps enable debug logging for query [2] to see if anything can be done.

[1] Take thread dumps from a JVM

[2] Oak Queries and Indexing