2011/3/18 Francis GALIEGUE <f...@one2team.com>:
> Hello,
>
> Here is the environment:
>
> * Tomcat 7.0.x, where x is 8 or 11;
> * RHEL 6, x86_64 ;
> * 64bit Sun JVM 1.6.0.24 ;
> * this is a VM on ESX, 2 vCPUs, 2 GB RAM;
>
> I build my own CATALINA_HOME, the difference between the bundled
> tar.gz and my home are:
>
> * no i18n jars;
> * only the manager webapp, I don't need the others;
> * changes in logging, I only use the consolehandler;
> * Coyote connector only listens on localhost;

1) You are using HTTP connector only, no AJP, no HTTPS?

When Tomcat starts it prints what connector implementations
("protocols") are used.

> * I use my own startup scripts, and the java command line is as such:
>
> /usr/lib/jvm/jre/bin/java -server -XX:-UsePerfData
> -Djava.awt.headless=true -Djava.awt.headlesslib=true
> -XX:+AggressiveHeap -classpath
> :/home/o3/tomcat/bin/bootstrap.jar:/home/o3/tomcat/bin/commons-daemon.jar:/home/o3/tomcat/bin/tomcat-juli.jar
> -Dcatalina.base=/home/o3/tomcat -Dcatalina.home=/home/o3/tomcat
> -Djava.endorsed.dirs= -Djava.io.tmpdir=/home/o3/tomcat/temp
> -Djava.util.logging.config.file=/home/o3/tomcat/conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> org.apache.catalina.startup.Bootstrap start
>
> The trouble is: most of the time, when Tomcat starts, the manager
> application takes 30 seconds or more to deploy (I've seen 60, 120 and
> as far as 260 seconds!). When all goes well, the startup time is 600
> ms. If I remove the webapp (and therefore start Tomcat with no webapp
> at all), the startup time is fast as well (~50 ms). Shutdown time is
> consistent, though, and perfectly normal.

2) Take 3 thread dumps with several seconds between them -- to see
what it is doing and where it is waiting

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

> I don't even know where to start to debug. I've tried to switch the
> loglevel to TRACE in logging.properties but it doesn't change anything
> in catalina.out, which is strange.

4) TRACE is not a valid level name.
1.  See JavaDoc for java.util.logging.Level. You want "FINE" or
"FINEST". Do not forget to add ".level" to the property name: it is
"packagename.level". Without the package ".level" (with a leading dot)
states the default. It defaults to INFO.

2.  The "<name>.level" sets what logging statements are generated.
Those are further filtered by the Handler. (whether it writes them to
a particular file or not).

If anything needs clarifying in the logging docs, please say so
http://tomcat.apache.org/tomcat-7.0-doc/logging.html



Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to