Tomcat 6 logging clog

2011-01-07 Thread Tim Space

Hi,

I'm getting huge logs (50MB after startup) in catalina.out despite having 
turned all logging up to SEVERE in my logging.property files.  
I'm hoping someone can point me to the right thread, as I'm sure others 
wouldn't have put up with 50MB logs out of the box as long as I have.  After 
going over the docs several times, I see that the standard LogManager "JULI 
uses either a programmatic approach, or properties files", so I'm guessing that 
it's using a programmatic approach, but there is no mention of how to make my 
logging use the property files.  I'm tried modifying both files to no effect:
/apache-tomcat-6.0.20/conf/logging.properties
/jdk1.6.0_18/jre/lib/logging.properties

The docs say:
Here is how you would set debugging from Tomcat. You would need to ensure the 
ConsoleHandler's level is also set to collect this threshold, 
so FINEST or ALL should be set. Please refer to Sun's java.util.logging 
documentation for the complete details.
org.apache.catalina.level=FINEST

However, the string "org.apache.catalina.level" is not found in the 
logging.properties file in apache's conf directory.
In-fact, the only place that string is found is in 
/apache-tomcat-6.0.20/webapps/docs/logging.html, as well as startup scripts but 
there is no dicsussion on the java loggin overview of how to set he level.

I'm running Fedora 14 by the way.  I been through a lot of archives searching 
from various angles, found similar problems, but none with sufficient answers 
for my problem.  I haven't changed anything else in the properties file, so 
they are as shipped with Tomcat 6.0.20.  I haven't tried to implement log4j, as 
java.util.logging with JULI would be fine if I didn't have to hear digesters 
every bowel movement like this:

1162113  Jan 5, 2011 4:28:59 PM org.apache.tomcat.util.digester.Digester 
endElement
1162114  FINE:   bodyText=''

Thanks

T.Curchod.

RE: Tomcat 6 logging clog

2011-01-07 Thread Tim Space
A_BASE/conf/logging.properties"
  else
# Bugzilla 45585
LOGGING_CONFIG="-Dnop"
  fi
fi

But as I said above, I use the sh startup.sh command on my system to start 
Tomcat, but there is not mention of logging.properties in that script.
As Konstantin suggested I looked at the catalina.policy file also.  I notice 
the java logging.properties file is also mentioned there, but as I showed in my 
last e-mail, I have changed the settings in that file also.

grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
permission java.io.FilePermission
 "${java.home}${file.separator}lib${file.separator}logging.properties", 
"read"; 

permission java.io.FilePermission
 
"${catalina.base}${file.separator}conf${file.separator}logging.properties", 
"read";

Another problem with this logging situation is that my webapp takes more than 
two minutes to load after startup.  What should I try next?

> Date: Fri, 7 Jan 2011 18:01:48 +0300
> Subject: Re: Tomcat 6 logging clog
> From: knst.koli...@gmail.com
> To: users@tomcat.apache.org
> 
> 2011/1/7 Caldarale, Charles R :
> > From: Tim Space [mailto:qwertypo...@hotmail.com]
> > Subject: Tomcat 6 logging clog
> >
> >> I'm tried modifying both files to no effect:
> >> /apache-tomcat-6.0.20/conf/logging.properties
> >
> > Step 1: move to the current Tomcat version, not one that's nearly two years 
> > old.
> >
> >> /jdk1.6.0_18/jre/lib/logging.properties
> >
> > Not used by Tomcat.  (You should also update your JVM.)
> 
> It is used by Tomcat.
> (Note the rules in catalina.policy that allow reading that file).
> 
> Properties not defined $CATALINA_BASE/conf/logging.properties are
> taken from there.
> 
> Best regards,
> Konstantin Kolinko
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
  

RE: Tomcat 6 logging clog

2011-01-08 Thread Tim Space

Here is the result of "ps -aef | grep java"

timmy15563 1  0 Jan08 pts/100:05:38 
/home/timmy/jdk1.6.0_18/bin/java 
-Djava.util.logging.config.file=/home/timmy/apache-tomcat-7.0.5/conf/logging.properties
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=/home/timmy/apache-tomcat-7.0.5/endorsed 
-classpath 
/home/timmy/apache-tomcat-7.0.5/bin/bootstrap.jar:/home/timmy/apache-tomcat-7.0.5/bin/tomcat-juli.jar
 -Dcatalina.base=/home/timmy/apache-tomcat-7.0.5 
-Dcatalina.home=/home/timmy/apache-tomcat-7.0.5 
-Djava.io.tmpdir=/home/timmy/apache-tomcat-7.0.5/temp 
org.apache.catalina.startup.Bootstrap start
timmy17144 17080  0 01:32 pts/200:00:00 grep java

It looks like all the correct info to me.  I modify the 
/home/timmy/apache-tomcat-7.0.5/conf/logging.properties 
but there is no effect with the catalina.out log...

> Date: Sat, 8 Jan 2011 16:12:15 +
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 6 logging clog
> 
> On 1/8/11 7:10 AM, Tim Space wrote:
> > 
> > 
> > 
> > 
> > As advised I removed every version of tomcat on my system.  There were two 
> > or three others besides the version I was running:
> > /usr/share/java/tomcat5
> > /etc/tomcat5
> > /var/lib/tomcat5
> > I have always started Tomcat with the sh startup.sh script, in my home 
> > directory, with CATALINA_HOME set to that Tomcat, and my webapps in that 
> > versions webapps directory.  When I used Tomcat 5.5 (not these copies) in 
> > my home directory, there was no problems with the logs, the problems only 
> > started after moving to Tomcat 6.0.02.  So that wasn't the problem.
> > Anyhow, I took Chucks advice and moved to the latest version 
> > apache-tomcat-7.0.5.  Thing works fine out of the box.  Webapp runs, and 
> > the new catalina.out is 42MBs, better than 50MBs, but still clogged.  Here 
> > is a sample of some of log entries:
> > 
> > line 43 Jan 8, 2011 6:29:10 AM org.apache.tomcat.util.digester.Digester 
> > characters
> > ... all Digester logs
> > line 900623 Jan 8, 2011 6:32:41 AM org.apache.tomcat.util.file.Matcher 
> > tokenizePathAsArray
> > FINER: Tokenizing path [ant.jar]
> > ... all Matcher logs
> > line 521583  Jan 8, 2011 6:38:11 AM 
> > org.apache.jasper.compiler.SmapUtil$SDEInstaller addSDE
> > FINE: constant pool count: 378
> > 
> > FINE: 160 read class attr -- 'SourceFile'
> > Jan 8, 2011 6:38:58 AM org.apache.jasper.compiler.SmapUtil$SDEInstaller 
> > copyConstantPool
> > 
> > Jan 8, 2011 6:38:58 AM org.apache.jasper.compiler.SmapUtil$SDEInstaller 
> > copyMembers
> > FINE: member attr count: 2
> > ...
> > Jan 8, 2011 6:39:00 AM org.apache.catalina.core.StandardWrapper allocate
> > FINER:   Returning non-STM instance
> > ...
> > 
> > line 934632 Jan 8, 2011 6:41:03 AM 
> > org.apache.catalina.core.ApplicationContext log
> > INFO: IntegratedTestResultAction.perform for -5519451928541341468   
> >   (<- This is the line where my webapp log starts.)
> > 
> > 
> > Here is the properties file settings that the distribution come with:
> > 
> > 1catalina.org.apache.juli.FileHandler.level = FINE
> > 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > 1catalina.org.apache.juli.FileHandler.prefix = catalina.
> > 
> > 2localhost.org.apache.juli.FileHandler.level = FINE
> > 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > 2localhost.org.apache.juli.FileHandler.prefix = localhost.
> > 
> > 3manager.org.apache.juli.FileHandler.level = FINE
> > 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > 3manager.org.apache.juli.FileHandler.prefix = manager.
> > 
> > 4host-manager.org.apache.juli.FileHandler.level = FINE
> > 4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > 4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
> > 
> > java.util.logging.ConsoleHandler.level = FINE
> > java.util.logging.ConsoleHandler.formatter = 
> > java.util.logging.SimpleFormatter
> > 
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 
> > 2localhost.org.apache.juli.FileHandler
> > 
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
> >  = INFO
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
> >  = 3manager.org.apache.juli.File