How to resolve the java.heap.space out of memoryerror while updating more than 10000 node properties ?
I am using Aem 6.5 server and updating the node properties in 12K nodes. i am getting the java.heap.space and out of memory error.
- I have tried these below ways, but no luck
- Using synchronized block, save the session and resolver.commit() after updating the JCR properties. Even I am facing the same issue.
- And tried to increase the heap size but when I am increasing more than 1024
-XX:MaxPermSize=512M -Xmx2048m... server not allowed to start itself.
- And while exploring the google I got the below documentation mentioned to update the oak.update.limit=10000. (https://cqdump.wordpress.com/2017/08/30/aem-transaction-size-or-do-a-save-every-1000-nodes/)
but I don't know where this property is added.
how to resolve this issue? Please guide me. Thanks in advance
