AEM 6.2 Too many calls Sling Exception. | Community
Skip to main content
Level 3
September 16, 2016
Solved

AEM 6.2 Too many calls Sling Exception.

  • September 16, 2016
  • 12 replies
  • 12569 views

Hello Team,

I'm working on the upgrade project from 5.6.1 to 6.2. Initially I had the issue of Too many Sling api calls exception and my components are not getting loaded in the edit mode. Only when I increase the value of sling.max.calls to higher value, my components gets loaded.

Any pointers/suggestions would be appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by cqvoyager

I debugged further and figured out that too many calls exception is coming when the number of components are more than 1000. When I debugged, total number of components are 1026.  That includes my custom components, geometrixx components and libs components. when it reached 1000, due to sling.max.calls value set to 1000, Component servlet is calling that component and its giving the exception once it reaches 1000 components.

To test this furhter I uninstalled the geometrixx components in my local and see that number of components came down from 1026 to 868 and this time, it did not result in Too many calls exception.

--Durga

12 replies

Level 1
August 11, 2017

Hi Riyaz,

The edit button will not come if number of components got increased. i.e., >1000. So you can either increase number of calls to as your limit in below configuration in felix console or in sling.properties file increase the components count.

edubey
Level 10
October 6, 2017

Hi ,

I don't think that's the number of components.

That's actually the number of calls happens at AEM for a request.

Let's assume config is having value 200. AEM will not render component for a page where this limit gets exceed, though you might still see some components on that page.

Thanks