Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 61233 invoked from network); 3 Feb 2006 12:57:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 12:57:05 -0000 Received: (qmail 50127 invoked by uid 500); 3 Feb 2006 12:56:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 49911 invoked by uid 500); 3 Feb 2006 12:56:48 -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 49894 invoked by uid 99); 3 Feb 2006 12:56:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 04:56:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.202.4.58] (HELO osl1smout1.broadpark.no) (80.202.4.58) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 04:56:47 -0800 Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IU400EKZ477CJ30@osl1smout1.broadpark.no> for users@tomcat.apache.org; Fri, 03 Feb 2006 14:01:55 +0100 (CET) Received: from www ([80.203.236.5]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IU400M1Y422KWC0@osl1sminn1.broadpark.no> for users@tomcat.apache.org; Fri, 03 Feb 2006 13:58:51 +0100 (CET) Received: from 10.0.0.199 ([10.0.0.199]) by www (JAMES SMTP Server 2.2.0) with SMTP ID 378 for ; Fri, 03 Feb 2006 13:32:41 +0100 (CET) Date: Fri, 03 Feb 2006 13:59:46 +0100 From: Christian Andersson Subject: Re: Catalina.out gets to big-> Server crashes In-reply-to: <21499.1138874915@www101.gmx.net> To: Tomcat Users List Message-id: <43E353C2.1080707@ofs.no> Organization: Open Framework Systems AS MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <21499.1138874915@www101.gmx.net> User-Agent: Mozilla Thunderbird 1.0.6-7.2.20060mdk (X11/20050322) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I recently came across this problem also (i've read some of the later mails in this discussion also and I'm answering to those too) with a tomcat 5.5.12 installation and using the ext3 filesystem. anyway, my setup is using jsvc from the commons daemon project, and the catalina.out file is defined in the startup script I'm using for jsvc.. and that part looks like this... (this is btw from my developer server so ignore the fact that it is not logging to /var/log/...) $CATALINA_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -pidfile /var/run/jsvc-tomcat.pid \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap here the parameter -outfile is beeing used to tel where the catalina.out file is.. now the question I have is now, how can I here setup jsvc so that it uses logrotation, I've searched the net 8google, commons daemon) but not been able to get a satisfying answer, but perheps the commons-daemon folk in their mailing list knows more and I have to ask there... /Christian Andersson Peter.Neu@gmx.net wrote: > Hello, > > I got this problem that the catalina.out file gets to big. It grows to > a size of approx. 2 gig and then tomcat just crashes. > > Does anyone know how configure tomcat so that catalina.out only get a size > of 100 MB and then replaces it by a new empty catalina.out? The old one > should be saved under a different name. > > cheers, > Pete > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org