This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes $CATALINA_HOME/conf, $CATALINA_HOME/work, $CATALINA_HOME/logs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "$CATALINA_HOME/conf, $CATALINA_HOME/work, $CATALINA_HOME/logs" Watch "$CATALINA_HOME/conf, $CATALINA_HOME/work, $CATALINA_HOME/logs" New topic
Author

$CATALINA_HOME/conf, $CATALINA_HOME/work, $CATALINA_HOME/logs

Chase Bonham
Ranch Hand

Joined: Jul 15, 2006
Posts: 50
We have a Linux box and Tomcat is installed on

/usr/local/apache-tomcat-5.5.23 ==> $CATALINA_HOME

I have noticed that Tomcat writes to $CATALINA_HOME/work and $CATALINA_HOME/logs directory.

This is an issue for my IT dept, because we don't
monitor those directories for "size". It seems like if left unchecked these could grow unbounded.

I would like to have Tomcat do its stuff in a seperate IT monitored dir on the same box.

Is this possible? or does TomCat code hardcode to base everything off
$CATALINA_HOME..
Ramesh Ch
Greenhorn

Joined: Dec 26, 2000
Posts: 25
please change the path of catalina.out in bin/catalina.sh. and also make changes in conf/logging.properties.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The work directory won't continue to grow.
That's where the compiled JSP code and classes go.
Once all of your JSPs have been compiled, that directory won't grow much.

I use log4j in my application.
With it, I can control not only where my logs go but when they should be rotated out, etc...

Once things are up and running, Tomcat doesn't write much to its own logs.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: $CATALINA_HOME/conf, $CATALINA_HOME/work, $CATALINA_HOME/logs