Monitoring LifeRay EE 6.1

There are some LR's properties that can help us to get some monitoring information as html comments, to activate this monitoring feature add the following properties to your portal-ext.properties


### For monitoring
    spring.configs=\
        META-INF/base-spring.xml,\
        \
        META-INF/hibernate-spring.xml,\
        META-INF/infrastructure-spring.xml,\
        META-INF/management-spring.xml,\
        \
        META-INF/util-spring.xml,\
        \
        META-INF/jpa-spring.xml,\
        \
        META-INF/executor-spring.xml,\
        \
        META-INF/audit-spring.xml,\
        META-INF/cluster-spring.xml,\
        META-INF/editor-spring.xml,\
        META-INF/jcr-spring.xml,\
        META-INF/ldap-spring.xml,\
        META-INF/messaging-core-spring.xml,\
        META-INF/messaging-misc-spring.xml,\
        META-INF/mobile-device-spring.xml,\
        META-INF/notifications-spring.xml,\
        META-INF/poller-spring.xml,\
        META-INF/rules-spring.xml,\
        META-INF/scheduler-spring.xml,\
        META-INF/scripting-spring.xml,\
        META-INF/search-spring.xml,\
        META-INF/workflow-spring.xml,\
        \
        META-INF/counter-spring.xml,\
        META-INF/mail-spring.xml,\
        META-INF/portal-spring.xml,\
        META-INF/portlet-container-spring.xml,\
        META-INF/staging-spring.xml,\
        META-INF/virtual-layouts-spring.xml,\
        \
        #META-INF/dynamic-data-source-spring.xml,\
        #META-INF/shard-data-source-spring.xml,\
        #META-INF/memcached-spring.xml,\
        META-INF/monitoring-spring.xml,\ ----------> This is the most important
        \
        META-INF/ext-spring.xml

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=false
#
# 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=false
#
# Set this to true to show data samples at the bottom of each portal page
# as HTML comment. 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


If everything works OK, you should receive the following lines as html comments when you request a portal page:

<!-- .............
 
{displayName=Menu, portletId=menu_WAR_Menuportlet, requestType=RENDER, {attributes=null, companyId=10155, description=null, duration=15, name=menu, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.015, timeout=0, user=null}}<br /> {requestURL=http://vmnxcatlrwast01.gsnet.corp:9087/c/portal/layout.jsp_display, {attributes=null, companyId=10155, description=Portal Request, duration=5, name=/c/portal/layout, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.005, timeout=-1, user=null}} <br /> -->

I think this monitoring feature could be useful for some basic performance testing and debugging.


Comentarios

Entradas populares