Disabling Local Host Access Logs in Tomcat
By default, one of the enabled forms of logging in Apache Tomcat is the Local Host Access Log. This log tracks every connection made to the RMS server. That means both masters and people, and every master connects every 15 seconds.
This can add up to a lot of logs that can quickly overwhelm the hard drive space of your server. The logs are not needed for RMS to work, you can keep them if you would like for security purposes, but for the vast majority of RMS users this can be disabled in order to not fill you hard drive. Here are the instructions for disabling local host access logging:
- Stop Tomcat
- Browse to C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf
- Edit the server.xml file
- Locate the following section:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> - Comment out this section by adding <!-- to the beginning of the section and --> to the end of the section
- Save and close server.xml
- Start Tomcat
Any previously collected log files may be deleted in order to save some extra hard drives space.