VMware Cloud Community
vMarkusK1985
Expert
Expert

DEBUG messages in catalina.out

Hi,

after a few weeks we have a verly large /usr/local/tcserver/vfabric-tc-server-standard/um/logs/catalina.out File.

We can see a lot of DEBUG messages in it.

How can we configure that?

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
Tags (2)
0 Kudos
3 Replies
IamTHEvilONE
Immortal
Immortal

Let me ask around for you.  This is hosted by vFabricTc (tomcat).  If it were a java component, we typically use log4j.

Since you're using vCloud Usage Meter, it may be worth filing a case to submit the log for review in case a lot is noise we could remove from being logged in the first place (our config) vs that of natural Tc logging (not the coding teams fault).

0 Kudos
IamTHEvilONE
Immortal
Immortal

you might be able to apply something like this, but still checking for you:

VMware KB: Modifying logging configuration for a Tomcat tcServer instance launched inside SpringSour...

0 Kudos
vMarkusK1985
Expert
Expert

Hello,

the logging.propertys file was looking Fine (I only added: org.apache.catalina.startup.ClassLoaderFactory.level, org.apache.catalina.startup.Bootstrap.level😞

.handlers = 1catalina.org.apache.juli.FileHandler

############################################################

# Handler specific properties.

# Describes specific configuration info for Handlers.

############################################################

1catalina.org.apache.juli.FileHandler.level = INFO

1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

1catalina.org.apache.juli.FileHandler.prefix = catalina.

1catalina.org.apache.juli.FileHandler.bufferSize = -1

2localhost.org.apache.juli.FileHandler.level = INFO

2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

2localhost.org.apache.juli.FileHandler.prefix = localhost.

2localhost.org.apache.juli.FileHandler.bufferSize = -1

3manager.org.apache.juli.FileHandler.level = INFO

3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

3manager.org.apache.juli.FileHandler.prefix = manager.

3manager.org.apache.juli.FileHandler.bufferSize  = -1

4host-manager.org.apache.juli.FileHandler.level = INFO

4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

4host-manager.org.apache.juli.FileHandler.bufferSize = -1

############################################################

# Facility specific properties.

# Provides extra control for each logger.

############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler

# For example, to log debug messages in ContextConfig and HostConfig

# classes and to log only warnings and errors in other

# org.apache.catalina.** classes, uncomment these lines:

#org.apache.catalina.startup.ContextConfig.level = FINE

#org.apache.catalina.startup.HostConfig.level = FINE

#org.apache.catalina.level = WARNING

org.apache.catalina.startup.Bootstrap.level=INFO

org.apache.catalina.startup.Catalina.level = INFO

org.apache.catalina.startup.ClassLoaderFactory.level=INFO

org.apache.catalina.startup.Catalina.handlers = java.util.logging.ConsoleHandler

com.vmware.level = WARNING

com.springsource.vfabric.licensing.level = WARNING

After restart still a lot of DEBUG messages is in the File. Here some of teh most frequent sources:

06:51:08.909 [NioProcessor-10] DEBUG o.a.d.s.a.b.grammar.AbstractGrammar

06:51:08.909 [NioProcessor-10] DEBUG o.a.d.s.l.c.a.l.StoreResultCode

06:51:08.911 [NioProcessor-10] DEBUG o.a.d.shared.asn1.ber.Asn1Decoder

06:51:08.911 [NioProcessor-10] DEBUG o.a.d.l.c.api.LdapNetworkConnection

06:51:09.259 [pool-9-thread-12] DEBUG net.liftweb.http.CometActor

06:51:33.557 [Hashed wheel timer #2] DEBUG c.n.h.c.p.netty.NettyConnectionsPool

06:51:35.658 [New I/O worker #2] DEBUG c.n.h.c.p.netty.NettyConnectionsPool

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos