How to enable verbose:gc in the Message Processor for Private Cloud 16.0x

To enable the -verbose:gc option in Private Cloud 16.0x, do the following:


1. Edit the file,

/opt/apigee/edge-message-processor/bin/start

and find the last line in the file, it starts with:


exec $JAVA -classpath "$classpath" -Xms$min_mem -Xmx$max_mem


2. Edit and append after -Xmx$max_mem the following:

-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/opt/apigee/var/log/edge-message-processor/logs/gc.log


3. The above change would require a restart of the message processor

/opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart

4. repeat for all your message processors

NOTE: The verbose:gc does not cause any additional performance overhead and is safe to enable in production.

Comments
sam-was
New Member

Hi,

It seems we are not able to see gc.log even after enabling the above parameters in our message-processor.

We are at version 4.16.09. Can someone please help

Version history
Last update:
‎12-12-2016 04:08 PM
Updated by: