Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DF50924F for ; Fri, 20 Apr 2012 19:39:33 +0000 (UTC) Received: (qmail 64441 invoked by uid 500); 20 Apr 2012 19:39:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64324 invoked by uid 500); 20 Apr 2012 19:39:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 64315 invoked by uid 99); 20 Apr 2012 19:39:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 19:39:29 +0000 X-ASF-Spam-Status: No, hits=-0.4 required=5.0 tests=PLING_QUERY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 19:39:25 +0000 Received: by ghrr14 with SMTP id r14so6793176ghr.18 for ; Fri, 20 Apr 2012 12:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=D6lQ6oolFNaX16eYDKI3W187aj+aQPSpD6O8pBoNY+A=; b=ckngsGyTVN1t4lLUCGUVrvTriLmlhE7ML9S2rY6zVcsuEXrCorQvjgZpEYMNCerKYc YnZmhvHAgAxeWypWESJcv5M1PtKOFF64hp4j8ae+kLEHYuE7HKB4BNtWqqbfjST72m6u 60iGowgvixZ+Ee4N70VsmsUvP35NWT37kkclT+nvyxxqbgNkpRQkyj41Asu4L+H+fePN isYp4iq5PBehRqUpti4pWDOEmFFmHUtPjeQX7nIjyyLyUmfnEGKt5utZymltyqdFoK+u t1oTNMK+eCorbkyc9FkhwenKzuqQjodDxH6D9mp7qCiGo3UIPerF5TnjDOFkltFyBIlz AWxw== MIME-Version: 1.0 Received: by 10.236.37.168 with SMTP id y28mr663049yha.111.1334950744590; Fri, 20 Apr 2012 12:39:04 -0700 (PDT) Received: by 10.146.161.7 with HTTP; Fri, 20 Apr 2012 12:39:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 23:39:04 +0400 Message-ID: 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? From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2012/4/20 Dilip Shah : > The following provides clarifications / details on the environments in wh= ich > the application is developed and then hosted: > (quite a bit of detail but I'm hoping this will help get to the root of t= he > issue) > > Develop environment: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > * Windows XP SP3 > * Tomcat version information: > C:\apache-tomcat-5.5.25\bin>version > Server version: Apache Tomcat/5.5.25 > Server built: =A0 Aug 24 2007 05:33:50 > Server number: =A05.5.25.0 > OS Name: =A0 =A0 =A0 =A0Windows XP > OS Version: =A0 =A0 5.1 > Architecture: =A0 x86 > JVM Version: =A0 =A01.6.0_30-b12 >(...) > Live environment: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > * 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: =A0 Jul 24 2009 01:33:09 > Server number: =A05.5.28.0 > OS Name: =A0 =A0 =A0 =A0Linux > OS Version: =A0 =A0 2.6.18-53.el5 > Architecture: =A0 i386 > JVM Version: =A0 =A01.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) contai= ns: [[[ [ INFO] 2012-04-20 08:55:55 (ApplicationContext.java:log:647) - Initializing Spring root WebApplicationContext ]]] catalina.out (from live system on CentOS) contains: [[[ [ INFO] 2012-04-20 01:11:41 (ApplicationContext.java:log:653) - Initializing Spring root WebApplicationContext SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/java/tomcat-5.5/common/lib/logback-classic.jar!/org/slf4j/im= pl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/java/tomcat-5.5/common/lib/slf4j-log4j12-1.5.2.jar!/org/slf4= j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explana= tion. ]]] Note: 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-0= 4-20.log, etc configured? 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/logging.properties. 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 catalina.sh (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: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org