Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please change the path of catalina.out in bin/catalina.sh. and also make changes in conf/logging.properties.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic