By default liferay comes with monitoring.It helps us more in performance improvement.
Just we need to enable it in portal.properties.
Add the below required properties in your portal-ext.properties and restart the server.
##
## Monitoring
##
#
# Configure the appropriate level for monitoring Liferay.
# Valid values are: HIGH, LOW, MEDIUM, OFF.
#
monitoring.level.com.liferay.monitoring.Portal=HIGH
monitoring.level.com.liferay.monitoring.Portlet=HIGH
#
# Set this to true to store data samples of the current request as a thread
# local variable. This allows you to obtain each request's statistics for
# further processing
#
monitoring.data.sample.thread.local=true
#
# Set this to true to monitor portal requests.
#
monitoring.portal.request=true
#
# Set this to true to monitor portlet action requests.
#
monitoring.portlet.action.request=true
#
# Set this to true to monitor portlet event requests.
#
monitoring.portlet.event.request=true
#
# Set this to true to monitor portlet render requests.
#
monitoring.portlet.render.request=true
#
# Set this to true to monitor portlet resource requests.
#
monitoring.portlet.resource.request=true
#
# Set this to true to show data samples at the bottom of each portal page.
# In order for data to show, the property
# "monitoring.data.sample.thread.local" must be set to true.
#
monitoring.show.per.request.data.sample=true
monitoring.data.sample.thread.local=true
Once you are done with it.Just open your portal page and refresh.
And right click and inspect element.
In the above screenshot you can see the information in green font-color.Here you can see portlet details and also duration:144.Here duration is in milliseconds.
It helps us to find which portlet takes more time to load the page.
Tuesday, 7 November 2017
03:00
MR: EDITOR
TEST
I am Java Developer. I have 6 year Experiance in this field and like to post in blogging. So keep sharing and like my post
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment