Wednesday, July 9, 2008

Tomcat log levels

The "service tomcat start" uses a different logging level than the console you normally see.

Changed: /opt/tomcat/conf/wrapper.conf
wrapper.logfile.loglevel=NONE

To:
# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=NONE

to:
# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=2m

# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
wrapper.logfile.maxfiles=2

# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=INFO

Tuesday, July 8, 2008

running tomcat

Where:
Travis Somerville (fireleg): where is tomcat installed on the system? where is tomcat-users.xml
Kevin Gray: It would be located in /opt/tomcat, the file would be in /opt/tomcat/conf/

Startup / Shutdown:
service tomcat start { console | start | stop | restart | status | dump }


Auto-Startup script:
ON = chkconfig tomcat on (to have it start when the VPS restarts).
LIST = chkconfig --list tomcat
OFF = chkconfig tomcat off