Hi Konstantin,

Thanks for the reply!

To answer your questions...
* Tomcat version info:
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

* Since I'm configuring the application's logging via log4j.properties, I can safely assume that logging is done via Log4j and not JULI, right? Your statement about log formatting also seems to suggest the same. Let me know if I interpreted your statement incorrectly.

* The changes I made to the application:
- I implemented Spring view controller (for the first time) and in the process added @Autowired, @JsonIgnore through the code - in the process of getting jSON output to the client, I added the following jar files to common/lib
aspectjtools-1.5.4.jar
bval-core-0.3-incubating.jar
hibernate-validator-4.1.0.Final.jar
jackson-core-asl-1.6.4.jar
jackson-mapper-asl-1.6.4.jar
joda-time-1.6.2.jar
joda-time-jsptags-1.0.2.jar
jstl-1.2.jar
validation-api-1.0.0.GA.jar

I suspect packages in one or more of these jar files is generating these INFO and DEBUG log entries in catalina.out

* The application's log4j.properties file is in the application's WEB-INF/classes folder

Your suggestion (CATALINA_OUT=/dev/null) is interesting but the collateral damage may be too great!

Let me know if you can think of anything else after getting this additional information.

Best wishes,

Dilip



--------------------------------------------------
From: "Konstantin Kolinko" <knst.koli...@gmail.com>
Sent: Thursday, April 19, 2012 10:14 AM
To: "Tomcat Users List" <users@tomcat.apache.org>
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?

2012/4/19 Dilip Shah <dilipvs...@hotmail.com>:
My Java application (Spring, Hibernate, MySQL) is running in Tomcat 5.5

What version of 5.5.x ?


After the last set of changes to my application, Tomcat's catalina.out file is growing very rapidly. With each query it adds a few MBs of INFO and DEBUG statements to the file.

The log file has very large number of INFO and DEBUG statements such as the following: 01:52:45.412 [main] INFO o.hibernate.cfg.annotations.Version - Hibernate Annotations 3.5.6-Final 01:52:45.465 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.5.6-Final 01:52:45.468 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found

Looks like misconfigured Log4J.logging framework.  You are missing
log4j.properties file somewhere (or you have several such files which
conflict with each other).

When Tomcat's JULI is used it formats its log statements differently.

After the last set of changes to my application

And you know what those changes were?

Start over with a fresh configuration.


If nothing else helps you may try the following (~joke):

1. Create file bin/setenv.sh with the following content:
CATALINA_OUT=/dev/null

2. Make the file executable.
3. Restart Tomcat.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to