How do I configure the gc.log and where can I find the file for AAI?
search cancel

How do I configure the gc.log and where can I find the file for AAI?

book

Article ID: 441307

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

How do I configure the gc.log and where can I find the file if there is a need to analyze java garbage collection logs for AAI?

Environment

  • Product: Automation Analytics & Intelligence (AAI)
  • Java Version: OpenJDK 17.x
  • Operating System: Linux / UNIX

Resolution

  1. Log in to the AAI server
  2. Navigate to the AAI installation directory (default is /opt/Automation_Analytics_Intelligence).
  3. Open jaws.sh.vmoptions in a text editor.
  4. Locate the GC logging section at the bottom of the file.
  5. Remove or comment out the line: -Xlog:gc=off.
  6. Update the logging string to use the absolute path to the AAI directory.

Correct Configuration Example:

# Remove or comment out the 'off' flag to prevent conflicts# -Xlog:gc=off
# Enable logging using an absolute path-Xlog:gc*:file=/opt/Automation_Analytics_Intelligence/gc.log:time,uptime,level,tags:filecount=5,filesize=20M
  1. Save the file and restart the AAI service for the changes to take effect.