tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: Runaway catalina.out logging
Date Wed, 09 May 2007 01:41:52 GMT
change
       | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &
to
       2>&1 | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &

ie, redirect stderr into stdout before passing it into the logger

Filip

Andy wrote:
> This is a correction of the Subject: which I failed to set properly in 
> my original message.  Sorry...
>
> Hi there,
>
> We have recently switched to tomcat-5.5, on SuSE 9.3, and I ran into a 
> strange problem that was not there before.
>
> I am using a custom script from catalina.out rotation.  It works much 
> the same way as cronolog, except it is much simpler and does more (if 
> anyone wants to see/use it, let me know ;)  ).  The script is invoked 
> using the same approach, from catalina.sh:
>
> I replace
>
>        >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
>
> with
>
>        | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 &
>
> This used to work perfectly.  But with ver.5.5, some startup and 
> shutdown messages "escape" to the terminal.  The rest goes to the 
> script as before. It seems that for those messages, tomcat explicitly 
> uses a file descriptor that corresponds to the terminal, or some such 
> thing.
>
> Anyone has an idea why this is happening, and how I can capture the 
> runaways?  Any help would be greatly appreciated.
>
> Regards,
>
> Andy Tsouladze
>
> Escaping startup messages:
>
> May 8, 2007 5:45:41 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal 
> performance in
> production environments was not found on the java.library.path:
> /usr/java/jre1.5.0_11/lib/amd64/server:/usr/java/jre1.5.0_11/lib/amd64:/usr/ 
>
> java/jre1.5.0_11/../lib/amd64
> May 8, 2007 5:45:41 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> May 8, 2007 5:45:42 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8443
> May 8, 2007 5:45:42 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1776 ms
> May 8, 2007 5:45:42 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> May 8, 2007 5:45:42 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> May 8, 2007 5:45:42 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> May 8, 2007 5:45:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> May 8, 2007 5:45:43 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/axis] startup failed due to previous errors
> May 8, 2007 5:45:44 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> May 8, 2007 5:45:44 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8443
> May 8, 2007 5:45:44 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> May 8, 2007 5:45:44 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/82  config=null
> May 8, 2007 5:45:44 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> May 8, 2007 5:45:44 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2181 ms
>
>
> Escaping shutdown messages:
>
>
> May 8, 2007 5:47:25 PM org.apache.coyote.http11.Http11BaseProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> May 8, 2007 5:47:25 PM org.apache.coyote.http11.Http11BaseProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8443
> csapp02:/u00/jakarta/bin # May 8, 2007 5:47:26 PM
> org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> May 8, 2007 5:47:26 PM org.apache.coyote.http11.Http11BaseProtocol 
> destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> May 8, 2007 5:47:26 PM org.apache.coyote.http11.Http11BaseProtocol 
> destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8443
> May 8, 2007 5:47:26 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed shutdown of Apache Portable Runtime
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message