Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

HOW TO: Enable garbage collection logging for a Java process in PIM
Solution
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)

wrapper.java.additional.34      = -XX:+PrintGCDetails 
wrapper.java.additional.35      = -XX:+PrintGCDateStamps 
wrapper.java.additional.36      = -Xloggc:./logs/gc.log
Hint

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

wrapper.java.additional.36      = -Xloggc:./logs/gc.%p.log

Linux

wrapper.java.additional.36      = -X​loggc:./logs/gc.$$.log


For log file rotation, add the following lines:


-XX:+UseGCLogFileRotation 
-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)


Reference
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
Database:
Operating System:
Other Software:
Attachments
Last Modified Date:12/26/2018 9:02 PMID:512061
People who viewed this also viewed

Feedback

Did this KB document help you?



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