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.
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?