AEM Author prod instance slows down too quick
Hi all,
The production author AEM instance of my client slows down too quick. After reading the logs I have found a couple of heavy reasons:
- Opened sessions for a very long time and I don't know the reason: org.apache.jackrabbit.oak.jcr.session.RefreshStrategy This session has been idle for 4 minutes and might be out of date. Consider using a fresh session or explicitly refresh the session.
- To get a ResourceResolver within an OSGi Service, we use:
- @Reference
protected ResourceResolverFactory resourceResolverFactory; - resourceResolverFactory.getServiceResourceResolver(ImmutableMap.of(ResourceResolverFactory.SUBSERVICE, "myService"));
- Add myService user to user.mapping within the right run mode config folder within org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.xml
- @Reference
- Always closing the resourceResolver on the finally block.
- To get a ResourceResolver within an OSGi Service, we use:
- AEM OOTB requests for page/asset information are too slow: 3895523ms 10/Dec/2015:13:49:30 +0100 500 GET /libs/wcm/core/content/reference.json?path=/content/some/path&_charset_=UTF-8&_dc=1449751180475 text/html
Some information about the intance usage:
- Multilanguage site: No blueprint has been used.
- Master (master) -> Public Master copy (live copy of master) -> com (live copy of public master) & countries (more than 30 countries, each one another live copy of public master copy)
- More than 50 concurrent users
- No author clustering
After restarting the instance I have tried: /libs/wcm/core/content/reference.json?path=/content/to/some/path and returned no assets and the request took 1.6 mins to be completed. How could I set a timeout for any request?
Many thanks in advance,
Salva.