QueueMetrics > Running QueueMetrics

Tomcat log files taking up to much disk space

<< < (2/2)

QueueMetrics:
No - as long as you have free space on the disk, and unless you see your machine hung on "wait for I/O".
I think you could disable log files at all.

See http://wiki.apache.org/tomcat/FAQ/Logging

WRP:
This was a bit of a hairy one.  To those interested in disabling all logging, here are the changes I made:


--- Code: ---[root@PBX ~]# diff /usr/local/queuemetrics/tomcat/conf/server.xml.original /usr/local/queuemetrics/tomcat/conf/server.xml
163,165d162
<       <Logger className="org.apache.catalina.logger.FileLogger"
<               prefix="catalina_log." suffix=".txt"
<               timestamp="true"/>
373,376d369
<         <Logger className="org.apache.catalina.logger.FileLogger"
<                  directory="logs"  prefix="localhost_log." suffix=".txt"
<             timestamp="true"/>
<
[root@PBX ~]# diff /usr/local/queuemetrics/tomcat/bin/catalina.sh.original /usr/local/queuemetrics/tomcat/bin/catalina.sh
206d205
<   touch "$CATALINA_BASE"/logs/catalina.out
218c217
<       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
---
>       >> /dev/null 2>&1 &
230c229
<       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
---
>       >> /dev/null 2>&1 &

--- End code ---

QueueMetrics:
That's great! If you don't mind, I'd add that to the FAQs.

WRP:
Go right ahead.  Hope it helps others!

QueueMetrics:
Thanks!

Navigation

[0] Message Index

[*] Previous page

Go to full version