Nous avons un vieux serveur fonctionnant sous Tomcat 5.5.
Hier, nous avons déployé un fichier de guerre, puis il a commencé à se bloquer.
En regardant le fichier catalina.date.log, j'ai trouvé quelques java.util.zip.ZipException et ensuite java.lang.OutOfMemoryError. Je pense qu'il en résulte une fuite de mémoire qui fait planter Tomcat lorsqu'il n'y a plus de mémoire pour l'alimenter.
3 dossiers sont concernés :
/var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-es.jar
/var/tomcat/tomcat-5.5.25/common/lib/._jasper-compiler-jdt.jar
/var/tomcat/tomcat-5.5.25/common/lib/._naming-factory-dbcp.jar
Ils sont tous à leur place et ne sont pas corrompus. Bien entendu, les ._
est le premier suspect à l'origine de l'erreur. Le problème est que ces fichiers ne sont référencés nulle part dans l'application, encore moins dans une application i18n-es, parce qu'elle n'a pas de fonction i18n et pas de configuration espagnole et, ALAIK, pas non plus dans Tomcat.
La mise à jour de Tomcat vers 7 n'est pas possible, et il ne plantait pas avant que cette application ne soit déployée, donc blâmer le serveur n'est pas une solution viable non plus.
Quelqu'un pourrait-il me donner une idée de ce qui peut utiliser ces fichiers ou ajouter ce qui suit ? ._
sur eux ?
Voici le journal complet des traces, il va du déploiement au redémarrage de Tomcat. {AppName} est le nom de la guerre. Il n'y a aucune référence à nos paquets nulle part dans les traces, tout se passe dans le code de Tomcat.
18/11/2013 11:06:24 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive {AppName}.war
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-es.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:99)
at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:457)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307)
at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4307)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4144)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1394)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:213)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:662)
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-compiler-jdt.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-ja.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-factory-dbcp.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jsp-api.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-en.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-fr.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-resources.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-compiler.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._commons-el.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-factory.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._servlet-api.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:06:24 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-runtime.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:07:21 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/{AppName}]
18/11/2013 11:12:02 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive {AppName}.war
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-es.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-compiler-jdt.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-ja.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-factory-dbcp.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jsp-api.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-en.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/i18n/._tomcat-i18n-fr.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-resources.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-compiler.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._commons-el.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._naming-factory.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._servlet-api.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:02 org.apache.catalina.startup.TldConfig tldScanJar
GRAVE: Exception processing JAR at resource path /var/tomcat/tomcat-5.5.25/common/lib/._jasper-runtime.jar in context /{AppName}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
18/11/2013 11:12:15 org.apache.tomcat.util.net.PoolTcpEndpoint processSocket
GRAVE: Unexpected error processing socket
java.lang.OutOfMemoryError: PermGen space
18/11/2013 11:17:41 org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8081
18/11/2013 11:17:42 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
18/11/2013 11:18:46 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
18/11/2013 11:18:46 org.apache.coyote.http11.Http11BaseProtocol init