tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: catalina.out file is growing very rapidly! How to prevent Hibernate's INFO and DEBUG statements from getting added to catalina.out file?
Date Fri, 20 Apr 2012 19:39:04 GMT
2012/4/20 Dilip Shah <>:
> The following provides clarifications / details on the environments in which
> the application is developed and then hosted:
> (quite a bit of detail but I'm hoping this will help get to the root of the
> issue)
> Develop environment:
> =================
> * Windows XP SP3
> * Tomcat version information:
> C:\apache-tomcat-5.5.25\bin>version
> Server version: Apache Tomcat/5.5.25
> Server built:   Aug 24 2007 05:33:50
> Server number:
> OS Name:        Windows XP
> OS Version:     5.1
> Architecture:   x86
> JVM Version:    1.6.0_30-b12
> Live environment:
> ==============
> * CentOS release 5.4 (Final)
> Linux 2.6.18-53.el5 #1 SMP Mon Nov 12
> 02:22:48 EST 2007 i686 i686 i386 GNU/Linux
> * Tomcat version information:
> Server version: Apache Tomcat/5.5.28
> Server built:   Jul 24 2009 01:33:09
> Server number:
> OS Name:        Linux
> OS Version:     2.6.18-53.el5
> Architecture:   i386
> JVM Version:    1.6.0_23-ea-b01
> (...)

1. This list generally does not allow attachments.

It may allow ones that have text/plain as their mime type (e.g. files
with *.txt extension), but it is nowhere written.

2. I'll comment on the files that you sent to me directly.

DevConsoleOutput.txt (that is console output on the Windows machine) contains:

[ INFO] 2012-04-20 08:55:55 ( -
Initializing Spring root WebApplicationContext

catalina.out (from live system on CentOS) contains:
[ INFO] 2012-04-20 01:11:41 ( -
Initializing Spring root WebApplicationContext
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
SLF4J: Found binding in
SLF4J: See for an explanation.

1. Different source line numbers in ApplicationContext logging output.

That is - you run with different libraries in Dev vs Production.  That
is besides the different versions of Tomcat.

2. Note the SLF4J logging library complaining that you have multiple
conflicting copies of the library.

There is no such SF4J warning in your dev environment. Starting with
it your logging goes crazy.

You have some mess in your common/lib.
You'd better remove all libs that do not belong to the default Tomcat
configuration and features configured in server.xml/context.xml files
(e.g. JDBC drivers) and keep them inside of your webapp.

> Question:
> * where are the other files such as admin.2012-04-20.log, catalina.2012-04-20.log, etc

It is a bit complicated. In short:

1. Tomcat 5.5 -> uses Apache Common Logging library

2. Apache Common Logging library -> decides whether to use log4j or
java.util.logging (differently in each classloader, depending on what
classes are available).

3. java.util.logging  configuration is specified in
conf/ It creates those files.

> Question:
> * who could be responsible for creating and configuring catalina.out file on the Linux
sever? Where do I look?

The last executed line of (the one that starts Tomcat)
redirects stderr and stdout streams from started java application - by
default to that file.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message