File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes catalina.out -> amok Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "catalina.out -> amok" Watch "catalina.out -> amok" New topic

catalina.out -> amok

Anton Rechenauer

Joined: Dec 23, 2003
Posts: 13
can anyone tell me how to avoid getting this stuff in catalina.out?
09:34:49,661 DEBUG sax:1004 - endElement(,,init-param)
09:34:49,663 DEBUG Digester:1007 - match='web-app/servlet/init-param'
09:34:49,664 DEBUG Digester:1008 - bodyText=''
09:34:49,666 DEBUG Digester:1026 - Fire body() for CallMethodRule[methodName=addInitParameter, paramCount=2, pa
ramTypes={java.lang.String, java.lang.String}]
09:34:49,669 DEBUG Digester:1046 - Popping body text ''
09:34:49,671 DEBUG Digester:1056 - Fire end() for CallMethodRule[methodName=addInitParameter, paramCount=2, par
amTypes={java.lang.String, java.lang.String}]
09:34:49,672 DEBUG Digester:2495 - Popping params
even with the minimal server.xml the startup time ist between 180 an 240 seconds; catalina.out is 44 MB after a few startups!
OS Suse Linux 8.1 2.4.24-xfs-040109
JVM 1.4.2_03-b02
Apache Tomcat/5.0.19

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I would look for debug=" attributes in various xml configuration files since the messages appear to be DEBUG related and DIGESTER is what Catalina uses to read configuration xml files.
[ March 09, 2004: Message edited by: William Brogden ]
Anton Rechenauer

Joined: Dec 23, 2003
Posts: 13
as far as i can see debug="0" !
Matt Innes

Joined: Oct 28, 2004
Posts: 1
The reason you are getting all that spam is because Log4J is set globally to DEBUG level. What you need to do is find out how log4j is configured (depends on the context, but there may be an initialisation servlet defined in web.xml).

Then, you need to set the default appender (look for root) to INFO level.

If you need DEBUG level logging for your classes, you can set loggers that are specific to your classes (i.e. excluding the Digester packages).
I agree. Here's the link:
subject: catalina.out -> amok
It's not a secret anymore!