I am using AEM’s Jackson exporter to export AEM content as JSON. I want to know if there is way to measure the response time for Jackson exporter in aem?
For example, http:4502/content/test/jcr:content/root/container/componentName.model.json
...
@Exporter(
name = CommonConstants.JACKSON,
extensions = CommonConstants.JSON,
options = { @ExporterOption(
name = CommonConstants.SERIALIZATION_FEATURE + "." + CommonConstants.WRAP_ROOT_VALUE,
value = CommonConstants.TRUE) })
@JsonRootName("Test")
public class CustomComponent implements CustomComponentSer
{
...
}
Is there any annotation that can be used to masseuse how much time it is taking to response the JSON response?
Solved! Go to Solution.
if you are looking for OOB option to check the response time, you should check /system/console/requests
ex- http://localhost:4502/system/console/requests
you will get below timestamp entries relevant to your request -
0 TIMER_START{Request Processing}
5 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
14 LOG Method=GET, PathInfo=null
19 TIMER_START{handleSecurity}
3099 TIMER_END{3078,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@7c9a20c1 returns true
3492 TIMER_START{ResourceResolution}
3664 TIMER_END{171,ResourceResolution} URI=/content/wknd/us/en/faqs.json resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/wknd/us/en/faqs
3676 LOG Resource Path Info: SlingRequestPathInfo: path='/content/wknd/us/en/faqs', selectorString='null', extension='json', suffix='null'
3677 TIMER_START{ServletResolution}
3681 TIMER_START{resolveServlet(/content/wknd/us/en/faqs)}
6226 TIMER_END{2538,resolveServlet(/content/wknd/us/en/faqs)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
Hi,
Refer this link:
http://www.wemblog.com/2014/05/how-to-find-component-load-time-on-page.html?m=1
Regards
Ankur
if you are looking for OOB option to check the response time, you should check /system/console/requests
ex- http://localhost:4502/system/console/requests
you will get below timestamp entries relevant to your request -
0 TIMER_START{Request Processing}
5 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>
14 LOG Method=GET, PathInfo=null
19 TIMER_START{handleSecurity}
3099 TIMER_END{3078,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@7c9a20c1 returns true
3492 TIMER_START{ResourceResolution}
3664 TIMER_END{171,ResourceResolution} URI=/content/wknd/us/en/faqs.json resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/wknd/us/en/faqs
3676 LOG Resource Path Info: SlingRequestPathInfo: path='/content/wknd/us/en/faqs', selectorString='null', extension='json', suffix='null'
3677 TIMER_START{ServletResolution}
3681 TIMER_START{resolveServlet(/content/wknd/us/en/faqs)}
6226 TIMER_END{2538,resolveServlet(/content/wknd/us/en/faqs)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
Views
Likes
Replies