tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dilip Shah" <dilipvs...@hotmail.com>
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 17:16:20 GMT
(sorry for sending the same email again... the earlier delivery wasn't all 
successful since one of the attachments had .bat file extension)

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:  5.5.25.0
OS Name:        Windows XP
OS Version:     5.1
Architecture:   x86
JVM Version:    1.6.0_30-b12
* There is a log4j.properties file in CATALINA_HOME\common\classes\
(attached as log4j.properties.dev.tomcat)
* There is a log4j.properties file in the application's WEB-INF\classes\
(attached as log4j.properties.dev.application)
* jar files in the application's WEB-INF\lib folder:
Directory of
C:\apache-tomcat-5.5.25\webapps\SmartCloudLearningMobi\WEB-INF\lib
09/11/2009  05:35 PM            60,841 commons-logging-1.1.1.jar
05/19/2009  01:51 PM           391,834 log4j-1.2.15.jar
* log4j-1.2.15.jar is also in CATALINA_HOME\common\lib\
* I've attached catalina.bat file (renamed)
* After I start Tomcat, hit the application once in the browser and then 
shutdown Tomcat, CATALINA_HOME\logs\ has the following log files:
Directory of C:\apache-tomcat-5.5.25\logs
04/20/2012  08:33 AM    <DIR>          .
04/20/2012  08:33 AM    <DIR>          ..
04/20/2012  08:31 AM                 0 admin.2012-04-20.log
04/20/2012  08:31 AM                 0 catalina.2012-04-20.log
04/20/2012  08:31 AM                 0 host-manager.2012-04-20.log
04/20/2012  08:31 AM                 0 localhost.2012-04-20.log
04/20/2012  08:31 AM                 0 manager.2012-04-20.log
04/20/2012  08:33 AM             1,599 SmartCloudLearning.log
04/20/2012  08:33 AM             1,361 SmartCloudLearningMobi.log
04/20/2012  08:33 AM               455 SpringMVC.log
04/20/2012  08:31 AM                 0 tomcat.log
* I've attached the concerned application's log file, renamed as 
SmartCloudLearningMobi.log.dev
- note that logging pattern in the application's log file matches what's 
defined in the application's WEB-INF\classes\log4j.properties
- I see some output on the console that I have attached as file 
DevConsoleOutput.txt. The application related output is in file 
SmartCloudLearningMobi.log but I don't see Tomcat related output in any log 
file
- note that catalina.2012-04-20.log is empty!
*** The problem I'm trying to solve does not exist in the development 
environment!!! ***
- note that here also, I have the Spring and Hibernate related jar files 
that I suspect are adding these INFO and DEBUG entries in 
CATALINA_HOME\common\lib\

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


Live environment:
==============
* CentOS release 5.4 (Final) Linux ip-208-109-190-155.ip.secureserver.net 
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:  5.5.28.0
OS Name:        Linux
OS Version:     2.6.18-53.el5
Architecture:   i386
JVM Version:    1.6.0_23-ea-b01
* There is a log4j.properties file in $CATALINA_HOME/common/classes/
(attached as log4j.properties.live.tomcat)
* There is a log4j.properties file in the application's WEB-INF/classes/
(attached as log4j.properties.live.application)
* jar files in the application's WEB-INF/lib folder:
total 500
drwxr-xr-x 2 tomcat tomcat   4096 Apr 20 01:09 .
drwxr-xr-x 4 tomcat tomcat   4096 Apr 18 23:59 ..
-rw-r--r-- 1 tomcat tomcat  60841 Sep 11  2009 commons-logging-1.1.1.jar
-rw-r--r-- 1 tomcat tomcat 391834 May 19  2009 log4j-1.2.15.jar
* log4j-1.2.15.jar is also in $CATALINA_HOME/common/lib/
* I've attached catalina.sh file
* After I start Tomcat, hit the application once in the browser, 
$CATALINA_HOME/logs/ has the following log files:
[root@ip-208-109-190-155 logs]# ls -la
total 9980
drwxr-xr-x  2 tomcat tomcat     4096 Apr 20 01:11 .
drwxr-xr-x 13 root   root       4096 Apr  9 07:31 ..
-rw-r--r--  1 root   root          0 Apr 20 01:11 admin.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 catalina.2012-04-20.log
-rw-r--r--  1 root   root   10178109 Apr 20 01:12 catalina.out
-rw-r--r--  1 root   root          0 Apr 20 01:11 
host-manager.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 localhost.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 manager.2012-04-20.log
-rw-r--r--  1 root   root       1468 Apr 20 01:11 SmartCloudLearning.log
-rw-r--r--  1 root   root       1113 Apr 20 01:12 SmartCloudLearningMobi.log
-rw-r--r--  1 root   root        244 Apr 20 01:11 
SmartCloudLearningMobi-QA.log
-rw-r--r--  1 root   root       1469 Apr 20 01:11 SmartCloudLearning-QA.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 tomcat.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 VeggieFoodie-mobile.log
* I've attached the concerned application's log file, renamed as 
SmartCloudLearningMobi.log.live
- note that logging pattern in the application's log file matches what's 
defined in the application's WEB-INF/classes/log4j.properties
- note that catalina.2012-04-20.log is empty!
- *** note that there one extra file, catalina.out that's already 10 MB ***
- I've attached only a part of the file to the email
- logging pattern in catalina.log does not match what's defined in the 
application's WEB-INF/classes/log4j.properties
- note that I have the Spring and Hibernate related jar files that I suspect 
are adding these INFO and DEBUG entries in $CATALINA_HOME/common/lib/

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

Thanks for working with me on this.

Dilip
 

Mime
View raw message