Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-7417

Additional info for 'Monitoring Garbage Collection and the JVM'

    Details

      Description

      Suggested by Jorge Diaz:

      Link to article: https://help.liferay.com/hc/en-us/articles/360017897472

      Garbage Collector Verbose Logging
      Add these JVM arguments to activate verbose logging for the JVM garbage collector.

      -verbose:gc -Xloggc:/tmp/liferaygc1.log -XX:+PrintGCDetails 
      -XX:+PrintGCCause  -XX:+PrintGCApplicationConcurrentTime 
      -XX:+PrintGCApplicationStoppedTime

      Examining these logs helps you tune the JVM properly.

      Comment: "Note: garbage collector file can grow too much. To avoid that, you can use following JVM arguments in order to rotate them into several files: -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=50M where: 10 is the number of files and 50M is the size of each one."

      Additional Comment: "I am not able to find DXP 7.2 version of this article. (DXP 7.0 and 7.1 exist) Why is 7.2 version missing? Can user apply to DXP 7.2 the same procedures as 7.0 or 7.1 versions?

        Attachments

          Activity

            People

            • Assignee:
              richard.sezov Rich Sezov
              Reporter:
              jay.lee Jay Lee
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.x
                7.1.x
                7.2.x