Programming & Coding

AEM Groovy Oak Query RuntimeNodeTraversalException Solution

Are you getting “org.apache.jackrabbit.oak.query.RuntimeNodeTraversalException: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.” Error in Groovy Console in AEM ?

Recently while working locally on one of the Groovy Script to get all properties from AEM JCR repository, I got max node traversal error and my groovy script’s execution was stopped.

By default, AEM has 100000 node traversal limit. Which is quite big. But there are sometimes scenarios, where you would like to test something on local, which requires more node traversal.

In my case, on my local AEM instance I wanted to find all property names, where a particular value is present.

To fix node traversal issue in AEM Groovy Script on local, visit AEM Configuration Manager at http://localhost:4502/system/console/configMgr

Then search for “Apache Jackrabbit Query Engine Settings Service“. And click on that. You will see something like shown below.

Solution to AEM Groovy Script RuntimeNodeTraversalException

In above screenshot, In the “In memory read limit” section, increase limit by changing value temporarily. Just add one more Zero at the end and save. Then try running your Groovy Script again. If it works, then its good, else just increase limit.

Once script execution is done, don’t forget to revert it back to 100000. Its always better to keep standard configuration intact.

Did it solve your Groovy Script Node traversal issue? Do not forget to share it with your colleagues and friends.

ProWebGuru

Mostly I write about technology related stuff on https://www.prowebguru.com Recently I have started making videos also. Mostly blog posts & videos are related to technology, programming and learning some new tips and tricks related to windows, wordpress, google app script, technical, programming, javascript, jquery and other coding related stuff. Youtube channel - https://www.youtube.com/user/prowebguru

Recent Posts

GPT 5.4: Powerful AI Breakthrough – 7 Game-Changing Features, Launch Date & Full Guide

GPT 5.4: The Next-Generation AI Model Transforming Reasoning, Coding, and Productivity Artificial Intelligence is evolving…

1 day ago

GPT‑5.3 Instant Explained: Faster, Smarter & Fewer Refusals

GPT-5.3 Instant is OpenAI's latest ChatGPT model update, prioritizing smoother conversations, fewer refusals, and higher…

2 days ago

Free Perplexity Pro for Airtel Customers: Unlock Advanced AI Assistance at No Cost!

Are you tired of scrolling endlessly through Google results trying to find clear, trustworthy answers?…

4 months ago

Unlocking Collaborative Coding with GitHub Copilot Spaces

In recent years, the process of software development has rapidly evolved—developers demand smarter tools and…

4 months ago

ChatGPT Go Now Free in India: Opening Doors to Advanced AI Capabilities

India has emerged as one of the fastest-growing and most significant markets in the global…

4 months ago

AgentKit by OpenAI: Redefining the Future of AI Agent Development

On October 6, 2025, OpenAI unveiled AgentKit, a unified suite of tools designed to help developers and…

5 months ago

This website uses cookies.