Java Agent AutoProbe.log file can grow to be quite large (GB). Is there a way to limit the size or disable logging completely?
search cancel

Java Agent AutoProbe.log file can grow to be quite large (GB). Is there a way to limit the size or disable logging completely?

book

Article ID: 11047

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction



When Introscope Java agents are deployed in production, it is possible that the AutoProbe.log can grow to be quite large (i.e. several GB).

Is there a way to set a limit on size of AutoProbe.log?

Environment

APM Java Agent 9.x, 10.x

Resolution

1. The Autoprobe log size limit can be controlled by implementing the following:

Add the com.wily.autoprobe.logSizeInKB property in JVM generic arguments. Example: 

....... -Dcom.wily.introscope.agentProfile=..... -Dcom.wily.autoprobe.logSizeInKB=10000 .... 

Restart of the Application Server JVM is then required.

 

2. Setting agent profile property introscope.autoprobe.logfile to no value i.e. "introscope.autoprobe.logfile=" will disable Autoprobe logging completely. Restart of the Application Server JVM is then required.

Additional Information


After adding and setting -Dcom.wily.autoprobe.logSizeInKB=1024, the AutoProbe process will continue to log. 

Two things will happen. 
1. When it reaches the limit, the AutoProbe log will stop logging.
2. If the Agent is restarted, the AutoProbe log will be overwritten, not appended to.