We are using APM 10.7 on linux and the em logs are filling up very fast due to which performance is also degraded.
Can anyone guide me through this that what could be the cause of this issue.
your log level might be on DEBUG that why it is filling.
Open IntrosocpeEnterpriseManager.properties file and change following
change INFO to WARN
Yes,it was on DEBUG and I have changed it to WARN but junaid what does these properties mean.
Go to Apache's website and look at the information regarding Log4j (aka Commons Logging).
I have changed log4j.logger.Manager=WARN,console logfile but the em.log went to 11gb in just one day can you help me on this.
em.log floods with : "SQLState 23505" and "duplica - CA Knowledge
It depends on what the WARNING is . Are they all one message or many different ones?
1) You can turn off all WARNINGs per above link
2) You can attempt to resolve the situation so the WARN disappears
3) You can open a case to get that WARNing(s) suppressed . (I would suggest 2 as the best course of action)
WARNpublic static final Level WARNThe WARN level designates potentially harmful situations.
INFOpublic static final Level INFOThe INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
DEBUGpublic static final Level DEBUGThe DEBUG Level designates fine-grained informational events that are most useful to debug an application.
in adition to the Hallett_German suggestion consider following.
By default EM will write log messages to both em.log as well as IntroscopeEntepriseManager.log file for e.g
log4j.logger.Manager=INFO, console, logfile
you can remove this double logging by removing console from above\similar statements in IntroscopeEnterpriseManager.properties which by itself should reduce the size drastically.
stop EM before make changes in properties file and delete em.log before starting EM.
You can also read the below KBs:
How to configure the size of EM.log? - CA Knowledge
Options for controlling em.log - CA Knowledge