Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Print Bookmark Alert me when this article is updated


HOW TO: Enable garbage collection logging for a Java process in PIM
To enable garbage collection logging in Product Information Management (PIM), do the following:
  1. Open .\server\service\wrapper.conf
  2. Append the following JVM options -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:./logs/gc.log
  3. Save and restart the service. The GC log files will be written to the server log folder (for instance, gc.log).
More Information

Example for WINDOWS (add parameters as needed starting from last number +1)      = -XX:+PrintGCDetails      = -XX:+PrintGCDateStamps      = -Xloggc:./logs/gc.log

GC log gets overwritten every time the Java process starts if you do not use a unique file name.

Therefore, ensure that a different (unique) file name that gets generated on every restart, $$ and %p is added to the GC log file name in Linux and Windows respectively.  In the UNIX environment, $$ will expand to the PID of the process and on Windows, %p expands to the PID of the process.

Windows      = -Xloggc:./logs/gc.%p.log

Linux      = -X​loggc:./logs/gc.$$.log

For log file rotation, add the following lines:

-XX:NumberOfGCLogFiles=5  (number of files to use when rotating logs, must be >= 1)
-XX:GCLogFileSize=2M size (size of the log file at which point the log will be rotated, must be >= 8K)

Use the following online tool: Universal GC Log Analyzer
Applies To
Product: Product 360(Procurement/Media Manager)
Problem Type:
User Type:
Project Phase:
Product Version: Product Information Management 8.0.00; Product information Management 8.0.5; Product Information Management 8.0.6
Operating System:
Other Software:
Last Modified Date:12/26/2018 9:02 PMID:512061
People who viewed this also viewed


Did this KB document help you?

What can we do to improve this information (2000 or fewer characters)