Excessive log files from Catalina (read: Apache Tomcat (read: SOLR))

I found yesterday that a customer’s SOLR server was almost out of disk space (<50MB free on C), so I investigated the issue. I found that by default, every visitor is being logged to a file that rolls over every day. In the production environment, this turned into over 4GB of logs per day. The setting that controls this is in the following location:

C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\server.xml

and the node that controls the log is this one:

In the case of our sites, the ASP.Net instance (us) calls out to SOLR to perform searches and we crunch the results server-side. That being the case, we have no need to log our own traffic; commenting out this node turns off the logging of visitors, thus alleviating the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *

6 − = four

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">