Analysis of log files in the tomcat logs directory (summary)

Analysis of log files in the tomcat logs directory (summary)

Each time tomcat is started, the following log files are automatically generated in the logs directory and automatically backed up by date. It can help us find errors better.

insert image description here

1. catalina.date.log

1. Mainly records the information when tomcat starts;
2. The JVM parameters started and the operating system and other log information;
3. Log mechanisms such as log4j are not used, and system error messages and print statements are also recorded in this log file;
4. All logs under Linux are in catalina.out.

09-Dec-2021 10:45:16.836 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server. Server version: Apache Tomcat/9.0.35

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server build: May 5 2020 20:36:20 UTC

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number (: 9.0.35.0

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Operating system name: Windows 10

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS.Version: 10.0

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64

09-Dec-2021 10:45:16.851 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java environment variable: D:\jdk1.8.0_261\jre

09-Dec-2021 10:45:16.852 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java virtual machine version: 1.8.0_261-b12

09-Dec-2021 10:45:16.852 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.Vendor: Oracle Corporation

09-Dec-2021 10:45:16.852 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 10:45:16.852 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.util.logging.config.file=C:\Users\21180\Desktop\Tomcat9-2\conf\logging.properties

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=

09-Dec-2021 10:45:16.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Dcatalina.base=C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 10:45:16.864 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 10:45:16.865 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Users\21180\Desktop\Tomcat9-2\temp

: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

09-Dec-2021 10:45:18.370 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing protocol handler ["http-nio-8880"]

09-Dec-2021 10:45:18.610 INFO [main] org.apache.catalina.startup.Catalina.load Server initialized in [2,348] milliseconds

09-Dec-2021 10:45:18.734 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]

09-Dec-2021 10:45:18.735 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: [Apache Tomcat/9.0.35]

09-Dec-2021 10:45:18.773 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [C:\Users\21180\Desktop\Tomcat9-2\conf\Catalina\localhost\werp.xml].

09-Dec-2021 10:45:18.852 WARN [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/werp] in the deployment descriptor [C:\Users\21180\Desktop\Tomcat9-2\conf\Catalina\localhost\werp.xml] has been ignored

09-Dec-2021 10:45:18.865 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor (: docBase [C:\Users\21180\Desktop\Tomcat9-2\webapps\werp] specified in host appBase will be ignored

09-Dec-2021 10:45:18.952 WARN [main] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.

09-Dec-2021 10:45:35.803 INFO [main] org.apache.catalina.core.StandardContext.checkUnusualURLPattern Suspicious URL pattern: [/sso*]In context[/werp], see sections 12.1 and 12.2 of the Servlet specification

09-Dec-2021 10:45:37.060 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs but does not yet contain a TLD. Enable debug logging for this logger to obtain the full list of JARs that were scanned but in which no TLDs were found. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

09-Dec-2021 10:45:37.704 INFO [main] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized WSSERVLET12: JAX-WS context listener initializing

09-Dec-2021 10:45:39.256 INFO [main] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.<init> WSSERVLET14: JAX-WS servlet initializing

09-Dec-2021 10:46:15.034 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [C:\Users\21180\Desktop\Tomcat9-2\conf\Catalina\localhost\werp.xml] completed in [56,261]ms

09-Dec-2021 10:46:15.038 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploy web application to directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\docs]

09-Dec-2021 10:46:15.088 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\docs] completed in [50] milliseconds

09-Dec-2021 10:46:15.097 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploy web application to directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\manager]

09-Dec-2021 10:46:15.219 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\manager] completed in [122] milliseconds

09-Dec-2021 10:46:15.221 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploy web application to directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\ROOT]

09-Dec-2021 10:46:15.273 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\21180\Desktop\Tomcat9-2\webapps\ROOT] completed in [52] milliseconds

09-Dec-2021 10:46:15.280 INFO [main] org.apache.coyote.AbstractProtocol.start Starting protocol handler ["http-nio-8880"]

09-Dec-2021 10:46:15.296 INFO [main] org.apache.catalina.startup.Catalina.start Server started after [56,685] milliseconds

09-Dec-2021 10:52:00.552 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the server instance.

09-Dec-2021 10:52:00.554 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler["http-nio-8880"]

09-Dec-2021 10:52:00.731 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]

09-Dec-2021 10:52:00.914 INFO [main] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.destroy WSSERVLET15: JAX-WS servlet destroyed

09-Dec-2021 10:52:00.919 INFO [main] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextDestroyed WSSERVLET13: JAX-WS context listener destroyed

09-Dec-2021 10:52:00.933 WARN [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [werp] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent memory leaks, the JDBC driver has been forcibly unregistered.

09-Dec-2021 10:52:00.934 WARN [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [werp] appears to have started a thread named [Thread-4] but failed to stop it. This will most likely create a memory leak. The thread's stack trace:

java.lang.Thread.sleep(Native Method)

com.ebig.message.engine.EmailThread.run(EmailEngine.java:547)]

09-Dec-2021 10:52:00.944 WARN [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [werp] appeared to have started a thread named [Thread-33] but failed to stop it. This will most likely create a memory leak. The thread's stack trace:

java.lang.Object.wait(Native Method)

java.lang.Object.wait(Object.java:502)

com.ebig.log.EbigLoggerEngine.popLog(EbigLoggerEngine.java:65)

com.ebig.log.LogThreadListener.run(LogThreadListener.java:22)]

09-Dec-2021 10:52:01.008 WARN [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [werp] appeared to have started a thread named [SchedulerServiceEvent] but failed to stop it. This will most likely create a memory leak. The thread's stack trace:

java.lang.Object.wait(Native Method)

java.lang.Object.wait(Object.java:502)

com.ebig.servicemgr.kernel.EventQueue.get(EventQueue.java:21)

com.ebig.servicemgr.kernel.EventListenerLoop.run(EventListenerLoop.java:33)

java.lang.Thread.run(Thread.java:748)]

09-Dec-2021 10:52:01.195 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8880"]

09-Dec-2021 10:52:01.203 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying protocol handler ["http-nio-8880"]

09-Dec-2021 12:00:43.731 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server. Server version: Apache Tomcat/9.0.35

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server build: May 5 2020 20:36:20 UTC

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number (: 9.0.35.0

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Operating system name: Windows 10

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS.Version: 10.0

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64

09-Dec-2021 12:00:43.781 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java environment variable: D:\jdk1.8.0_261\jre

09-Dec-2021 12:00:43.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java virtual machine version: 1.8.0_261-b12

09-Dec-2021 12:00:43.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.Vendor: Oracle Corporation

09-Dec-2021 12:00:43.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 12:00:43.782 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 12:00:43.827 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.util.logging.config.file=C:\Users\21180\Desktop\Tomcat9-2\conf\logging.properties

09-Dec-2021 12:00:43.827 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

09-Dec-2021 12:00:43.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048

09-Dec-2021 12:00:43.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

09-Dec-2021 12:00:43.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=

09-Dec-2021 12:00:43.828 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 12:00:43.829 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Users\21180\Desktop\Tomcat9-2

09-Dec-2021 12:00:43.829 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Users\21180\Desktop\Tomcat9-2\temp

: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

09-Dec-2021 12:00:45.310 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing protocol handler ["http-nio-8880"]

09-Dec-2021 12:00:45.508 INFO [main] org.apache.catalina.startup.Catalina.load Server initialized in [2,113] milliseconds

09-Dec-2021 12:00:45.558 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]

09-Dec-2021 12:00:45.560 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: [Apache Tomcat/9.0.35]

09-Dec-2021 12:00:45.581 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [C:\Users\21180\Desktop\Tomcat9-2\conf\Catalina\localhost\werp.xml].

09-Dec-2021 12:00:45.617 WARN [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/werp] in the deployment descriptor [C:\Users\21180\Desktop\Tomcat9-2\conf\Catalina\localhost\werp.xml] has been ignored

09-Dec-2021 12:00:45.625 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor (: docBase [C:\Users\21180\Desktop\Tomcat9-2\webapps\werp] specified in host appBase will be ignored

09-Dec-2021 12:00:45.654 WARN [main] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.

09-Dec-2021 12:00:52.657 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Unable to contact [localhost:8805] (base port [8805] and offset [0]). Tomcat may not be running.

09-Dec-2021 12:00:52.660 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Error stopping Catalina

java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)

at java.net.Socket.connect(Socket.java:606)

at java.net.Socket.connect(Socket.java:555)

at java.net.Socket.<init>(Socket.java:451)

at java.net.Socket.<init>(Socket.java:228)

at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:513)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:389)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:479)

09-Dec-2021 12:01:02.320 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Unable to contact [localhost:8805] (base port [8805] and offset [0]). Tomcat may not be running.

09-Dec-2021 12:01:02.323 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Error while stopping Catalina

java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)

at java.net.Socket.connect(Socket.java:606)

at java.net.Socket.connect(Socket.java:555)

at java.net.Socket.<init>(Socket.java:451)

at java.net.Socket.<init>(Socket.java:228)

at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:513)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:389)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:479)

2. commons-daemon.date.log

1. It is estimated that the service mode is used to start the logging of Tomcat as a daemon process;

[2017-12-16 15:45:49] [info] [1706572] Commons Daemon procrun (1.0.15.0 64-bit) started

[2017-12-16 15:45:49] [info] [1706572] Running 'Tomcat7' Service...

[2017-12-16 15:45:49] [info] [1706632] Starting service...

[2017-12-16 15:45:51] [info] [1706632] Service started in 1617 ms.

[2017-12-16 15:50:57] [info] [1716024] Stopping service...

[2017-12-16 15:50:58] [info] [1716024] Service stop thread completed.

[2017-12-16 15:50:59] [info] [1706572] Run service finished.

[2017-12-16 15:50:59] [info] [1706572] Commons Daemon procrun finished

[2017-12-16 15:51:21] [info] [1711056] Commons Daemon procrun (1.0.15.0 64-bit) started

[2017-12-16 15:51:22] [info] [1711056] Running 'Tomcat7' Service...

[2017-12-16 15:51:22] [info] [1716072] Starting service...

[2017-12-16 15:51:23] [info] [1716072] Service started in 1511 ms.

3. host-manager.date.log

It is probably used to store the log information of Tomcat's built-in manager project, but I didn't see any important log information.

4. localhost.date.log

Similar to catalina log, but the information is not as complete catalina log;

5. localhost_access_log.date.txt

Stores all addresses of requests to access Tomcat, as well as the requested path, time, request protocol, return code and other information (important)

6. manager.log.log

It is probably a log file dedicated to the manager project, and there is no important information.

7. tomcat7-stderr.date.log

This is the log4j error log, so you need to catch the exception properly in the program.

8. tomcat7-stdout.date.log

1. Information similar to the eclipse console;
2. Logs printed by the System statement in the program (including exceptions thrown by the system).

This is the end of this article about the meaning of each log file in the tomcat logs directory. For more relevant tomcat log file content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of Tomcat directory structure
  • Catalina.out log file segmentation under Linux tomcat
  • Script for regular cleanup and backup of Tomcat log files

<<:  HTML tag meta summary, HTML5 head meta attribute summary

>>:  One line of CSS code to achieve the integration of avatar and national flag

Recommend

How to install Docker and configure Alibaba Cloud Image Accelerator

Docker Installation There is no need to talk abou...

Perfect solution to MySQL common insufficient memory startup failure

1. If MySQL is not started successfully, check th...

Detailed explanation of Vue options

Table of contents 1. What are options? 2. What at...

Detailed explanation of when javascript scripts will be executed

JavaScript scripts can be embedded anywhere in HT...

Implementation of Docker to build Zookeeper&Kafka cluster

I've been learning Kafka recently. When I was...

Connector configuration in Tomcat

JBoss uses Tomcat as the Web container, so the co...

JS implements city list effect based on VUE component

This article example shares the specific code for...

How React Hooks Work

Table of contents 1. React Hooks vs. Pure Functio...

A brief analysis of the differences between px, rem, em, vh, and vw in CSS

Absolute length px px is the pixel value, which i...

Nginx configuration PC site mobile site separation to achieve redirection

Use nginx to configure the separation of PC site ...

Front-end state management (Part 2)

Table of contents 1. Redux 1.1. Store (librarian)...