El 06/04/15 a les 22:19, Hilton Gibson ha escrit: > Hi Chris > > 1. Check the log clean-up here: > http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin/4.X#Sample_crontab > 2. Check the daily restart that also cleans out the tomcat logs here: > http://wiki.lib.sun.ac.za/index.php/SUNScholar/Restart_DSpace > > Cheers > > hg > > *Hilton Gibson* > Ubuntu Linux Systems Administrator > JS Gericke Library > Room 1025C > Stellenbosch University > Private Bag X5036 > Stellenbosch > 7599 > South Africa > > Tel: +27 21 808 4100 | Cell: +27 84 646 4758 > > On 6 April 2015 at 20:20, Chris Gray <cpg...@uwaterloo.ca > <mailto:cpg...@uwaterloo.ca>> wrote: > > We have an instance of 3.1 (scheduled to be replaced by 5.1 > eventually) > where the log files for dspace and tomcat keep overflowing the file > system. > > Is there any place that documents best practices for rolling over > these > files and keeping disk usage reasonable? Both tomcat and dspace are > deployed in the /home/dspace directory. The server is RHEL 6.6. > > One problem is that catalina.out seems to grow without bounds. It is > currently ~30GB. Shouldn't it be truncated when the daily log is > broken > off? > > Chris Gray > Systems Analyst > 519-888-4567, ext. 35764 > cpg...@uwaterloo.ca <mailto:cpg...@uwaterloo.ca> > University of Waterloo > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > <mailto:DSpace-tech@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > > > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >
Hi, You can further reduce the logs generated by Tomcat by doing the following: - Disable localhost_access_log by commenting this entry in Tomcat's server.xml: <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> --> - Disable manager, host-manager and ConsoleHandler leaving Tomcat's logging.properties like this: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler .handlers = 1catalina.org.apache.juli.FileHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = WARNING 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.FileHandler.prefix = localhost. ############################################################ # Facility specific properties. # Provides extra control for each logger. ############################################################ org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler Before disabling these logs ensure you really don't need them. Cheers, Àlex ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette