DX APM : Number of OSGI Logs get created upon EM restart.
search cancel

DX APM : Number of OSGI Logs get created upon EM restart.

book

Article ID: 368447

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

It appears that each time the EM is restarted a log file (##########.log)  is generated within the <emhome>/product/enterprisemanager/configuration/ which is has it appears to be time in milliseconds and is 476 bytes in size.

These log files are triggered when the OSGI framework hits an issue.

This log does not rotate nor is it located within the <emhome>/logs directory where all the other log artifacts are present. 

Is there a way to prevent or to add a rotation to the logs so we are not overwhelmed by the number of these files?

Environment

DX APM 10.8

Cause

By Design 

Resolution

There is a workaround to configure the osgi log file location.

 

Please add the below property to Introscope_Enterprise_Manager.lax file in EM root directory

 

Add the java argument to lax.nl.java.option.additional property -Dosgi.logfile=../../../logs/osgi.log

 

After adding the above argument the property should look like below

 

lax.nl.java.option.additional=-Xms1024m -Xmx1024m -Djava.awt.headless=true -Dmail.mime.charset=UTF-8 -Dorg.owasp.esapi.resources=./config/esapi -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./logs/  -Xss512k -Dosgi.logfile=../../../logs/osgi.log