Tomcat5.5を実行している古いサーバーがあります。
昨日、warファイルをデプロイしましたが、クラッシュし始めました。
Catalina.date.logを見ると、Java.util.Zip.ZipExceptionが見つかり、次にJava.lang.OutOfMemoryErrorが見つかりました。フィードするメモリがなくなると、Tomcatがクラッシュするメモリリークが発生していると思います。
3つのファイルが含まれます:
/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
それらはすべてその場所にあり、破損していません。もちろん、._
はエラーを引き起こした最初の容疑者です。問題は、これらのファイルがアプリケーションのどこにも参照されていないことです。i18n機能やスペイン語の構成がなく、ALAIKもTomcatにないため、i18n-esファイルはさらに参照されます。
Tomcat o 7をアップグレードすることは不可能であり、このアプリがデプロイされる前にクラッシュしていなかったため、サーバーを非難することも実行可能な解決策ではありません。
誰かが私にこれらのファイルを使用しているのか、それらに._
を追加しているのかについてのアイデアを教えてもらえますか?
以下は完全なトレースログです。デプロイメントからTomcatの再起動まで続きます。 {AppName}は戦争の名前です。スタックトレースのどこにもパッケージへの参照はまったくありません。すべて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
私の場合、Tomcatルートディレクトリの下の「temp」ディレクトリを誤って削除すると、このエラーメッセージが表示されます。多分あなたは臨時雇用者が存在するかどうかをチェックすることができます。はいの場合は、Tomcatを起動するアカウントの所有権を確認します。
Tomcatを起動するときに、共有メモリ設定を増やすことをお勧めします。これは一時フォルダの問題である可能性があります(Scottが書いたように、スペースや権限がないと考えてください)
さらに、これは使用するRAMが多すぎる可能性があります。
XmxとXmsの値を増やして、ヒープ設定も更新することをお勧めします。
SFで「OOMTomcat」を検索すると、残りの学習が必要になります。