Expand my Community achievements bar.

SOLVED

Content Fragment Model Crashing

Avatar

Level 2

Hi All, 
I am trying to create a Content Fragment Model (CFM) in AEM, but after adding around 30 properties, the CFM starts crashing. It becomes unresponsive at times, and sometimes it appears blank in the CFM console. However, I can still see the added nodes in CRX. Could you please guide me on what the issue could be and how to resolve it?

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ShamliKh ,

This is a common issue which arises when the number of fields in a CFM increases. You can try to increase the Number of calls per request from 1000 to 2000 in the Apache Sling Main Servlet Config. 

Note: This might impact the performance so make sure you increase it to a level where it stops crashing. Let me know if it works

MadhurMadan_0-1732314603103.png


Thanks and Regards,
Madhur Madan




View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @ShamliKh ,

This is a common issue which arises when the number of fields in a CFM increases. You can try to increase the Number of calls per request from 1000 to 2000 in the Apache Sling Main Servlet Config. 

Note: This might impact the performance so make sure you increase it to a level where it stops crashing. Let me know if it works

MadhurMadan_0-1732314603103.png


Thanks and Regards,
Madhur Madan




Avatar

Level 6

Hi @ShamliKh 

 

The property in sling Servlet main servlet that you are loiking gor is sling.max.calls. But few consideration to have in mind:

  • This prop wad introduced to avoid endleess loop of calls, to be carefull when you modify it. I would put the lowest possible value that makes your use case work , no lower than default (1000), but also refined to the digit ( leave some room )
  • Do this only on Author. So put your config file in proper config.{env}.author only.
  • Try to organize your CF in multiple tabs. On my propject we have CFs with ~50 fields, of all types, including multifields, tags, path selectors, color pickers or even other CF references, and nothing breaks.

 

All the best !