File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

catalina.out -> amok

Anton Rechenauer
Greenhorn

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


AR
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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.
Bill
[ March 09, 2004: Message edited by: William Brogden ]

Java Resources at www.wbrogden.com
Anton Rechenauer
Greenhorn

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

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: http://aspose.com/file-tools
 
subject: catalina.out -> amok
 
Similar Threads
Can't start Tomcat 4.1.12 on win2000
Tomcat5.0 logging stdout.log
Websphere server takes long time to startup
web.xml
log4j excessive logging