Generating the thread dumps


Liferay has feature to generate thread dumps if request takes more than 5 minutes. So that we can anayalze which thread it taking more time.

Search and look into these following properties in the portal.propeties.

     #
    # The thread dump filter will automatically log thread dumps when the portal
    # is too slow. Behavior can be configured via the property
    # "thread.dump.speed.threshold".
    #
    com.liferay.portal.servlet.filters.threaddump.ThreadDumpFilter=true



    #
    # The thread dump filter will log a thread dump if the portal takes longer
    # than the specified number of seconds to process. The thread dump filter
    # must be enabled via the property
    # "com.liferay.portal.servlet.filters.threaddump.ThreadDumpFilter".
    #
    thread.dump.speed.threshold=5



Also we have another option to generate the thread DUMP in the control panel , as follow the screenshots




Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate