Resolution: To enable garbage collection ("GC") details, append the following JVM properties in java.extended.properties in tibcohost.tra (From <TIBCO_CONFIG_HOME>\tibcohost\<TH_INSTANCE_FOLDER>\host\bin).
"-verbose:gc -Xloggc:<absolute-path-to-log file> -XX\:+PrintGCDetails -XX:+PrintGCTimeStamps and -XX:+PrintGCDateStamps"
Example:
java.extended.properties=-Xms24m -Xmx64m -XX:MaxPermSize=64m -XX:-HeapDumpOnOutOfMemoryError -verbose:gc -Xloggc:C:/temp/MyGCLog.txt -XX\:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps
The -verbose:gc option enables logging of garbage collection (GC) information.
-XX:+PrintGCDetails activate the “detailed” GC logging mode which differs depending on the GC algorithm used.
-XX:+PrintGCTimeStamp add time and date information reflecting the real time passed in seconds since JVM start is added to every line.
-XX:+PrintGCDateStamps each line starts with the absolute date and time when it was written:
-Xloggc:<<absolute-path-to-log file>> It is important to specify absolute path for file name.
After modifying the tibcohost tra file, follow the steps below to collect GC logs.
1). Stop Windows service for this host.
2). Uninstall Windows service using the command below.
tibcohost.exe --uninstall (From <TIBCO_CONFIG_HOME>\tibcohost\<TH_INSTANCE_FOLDER>\host\bin)
3). Install Windows service using the following command.
tibcohost.exe --install
4). Start Windows service for this host. Once started, you will find a file with the specified file name (in the above example, the file will be in C:/temp/MyGCLog.txt) with GC details.