Hi,I've just had some problems with our tomcat server running thredds, and I would like to find out more about the reasons for it. We're running tomcat 6 (apache proxy, nio-connector) and thredds 4.0.25 on linux 32bit with java6.
Each night, between 12:25 and 12:30 AM, the thredds webapplication seems to be restarted internally (localhost.2009-09-04.log):
Sep 4, 2009 12:29:04 AM org.apache.catalina.core.ApplicationContext log INFO: Destroying Spring FrameworkServlet 'catalogService' Sep 4, 2009 12:29:04 AM org.apache.catalina.core.ApplicationContext log INFO: Destroying Spring FrameworkServlet 'root' ... Sep 4, 2009 12:29:11 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'cdmRemote' Sep 4, 2009 12:29:11 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'admin' Sep 4, 2009 12:29:11 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'wms'Is this the normal behaviour. Why is the restart needed? Where is it scheduled?
Some days ago, this restart didn't work and crashed tomcat: ... Sep 1, 2009 12:30:14 AM org.apache.catalina.core.ApplicationContext log INFO: Destroying Spring FrameworkServlet 'wms' Sep 1, 2009 12:30:14 AM org.apache.catalina.core.ApplicationContext log INFO: Shutting down log4jSep 1, 2009 12:30:15 AM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class thredds.server.config.TdsConfigContextListener
java.lang.NoClassDefFoundError: org/apache/log4j/helpers/NullEnumeration at org.apache.log4j.Category.getAllAppenders(Category.java:413)at org.apache.log4j.Category.closeNestedAppenders(Category.java:226)
at org.apache.log4j.Hierarchy.shutdown(Hierarchy.java:448) at org.apache.log4j.LogManager.shutdown(LogManager.java:238)at org.springframework.util.Log4jConfigurer.shutdownLogging(Log4jConfigurer.java:117)
... INFO: Closing Spring root WebApplicationContext We've also experience some 'Too many open files' Exception around that time: SEVERE: Socket accept failed java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145) at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:1266)
at java.lang.Thread.run(Thread.java:619) andSep 1, 2009 12:30:16 AM org.apache.catalina.startup.ContextConfig defaultWebConfig SEVERE: Missing default web.xml, using application web.xml only conf/web.xml /metno/eksternweb/thredds/apache-tomcat-6.0.20/conf/web.xml java.io.FileNotFoundException: /metno/eksternweb/thredds/apache-tomcat-6.0.20/conf/web.xml (Too many open files)
Has somebody else seen the (Too many open files) with thredds, or is something in our configuraton (machine/tomcat) wrong? For more information , please see the attached log-files.
Best regards, Heiko -- Dr. Heiko Klein Tel. + 47 22 96 32 58 Development Section / IT Department Fax. + 47 22 69 63 55 Norwegian Meteorological Institute http://www.met.no P.O. Box 43 Blindern 0313 Oslo NORWAY
Attachment:
tomcat_logs.tgz
Description: application/compressed-tar
thredds
archives: