Performance measurement in Liferay

Introduction
Eliminating the performance measurement and tuning of our project can cause bad performance, and it will affect the whole project which leads to a bad user experience or project failure. Performance measurement in Liferay is useful for monitoring the server’s performance, health, memory usage, and database efficiency. By measuring the server’s health, Liferay performance tuning will be done. This will make the system faster and improve its performance.
The tools below are useful for performance measurement in Liferay.
Measure Garbage | This tool provides a centralized console for monitoring Oracle JVM performance, including garbage collector activities. JMX ConsoleThis tool displays various performance statistics such as Liferay DXP’s distributed cache performance, application server thread usage, JDBC connection pool usage, and more. The JMX Console is the preferred tool for monitoring Tomcat performance. Garbage Collector Verbose LoggingThis option enables detailed logging of garbage collection activities, providing insights into JVM performance. |
|---|---|
Advanced Monitoring: | The below tools are used for advanced performance monitoring. It will give more detailed information about how Liferay DXP servers and instances are performing.
|
Monitor each portlet load time in Liferay | To monitor each portlet's load time in Liferay, add the following configurations to portal-ext.propertiesmonitoring.data.sample.thread.local=true monitoring.level.com.liferay.monitoring.Portal=HIGH monitoring.level.com.liferay.monitoring.Portlet=HIGH monitoring.portal.request=true monitoring.portlet.action.request=true monitoring.portlet.event.request=true monitoring.portlet.render.request=true monitoring.portlet.resource.request=true monitoring.show.per.request.data.sample=true |
Prometheus and Grafana |
|
Liferay Cloud | The Liferay cloud's monitoring tab allows you to monitor a service's CPU, memory, transfer, and health metrics. |
Liferay Analytics Cloud | Liferay analytics cloud is useful for measuring engagement with Liferay assets. |
Monitor Liferay Enterprise Search | Kibana Kibana is Elasticsearch's visualization tool, which allows you to create custom dashboards and monitor search-related metrics in real-time. |
Conclusion
In conclusion, effective performance measurement will be helpful to ensure that the application delivers a high-quality user experience and meets business requirements.