gpt4 book ai didi

java - systemctl status tomcat 返回 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java :950)

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:49:28 36 4
gpt4 key购买 nike

我在 RHEL 7.2 服务器上安装了 Apache Httpd 2.4.6 和 Tomcat 7.0.54,配置了 AJP 连接器和 SSL,并启用了 SELinux。当我启动 Tomcat 服务器时,一切都开始正常,Web 应用程序也工作正常。但是过一会儿,如果您运行 # service tomcat statussystemctl status tomcat ,我会得到以下输出。

[root@ip-xxx-xxx-xxx-xxx logs]# service tomcat status
Redirecting to /bin/systemctl status tomcat.service
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2016-03-24 15:34:30 UTC; 1h 38min ago
Process: 5929 ExecStop=/usr/libexec/tomcat/server stop (code=exited, status=0/SUCCESS)
Main PID: 5973 (java)
CGroup: /system.slice/tomcat.service
└─5973 /usr/lib/jvm/jre/bin/java -Xms512m -Xmx3072m -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcata...

Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
Mar 24 16:44:09 ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal server[5973]: at java.lang.Thread.run(Thread.java:745)

我在 Tomcat 日志中没有看到任何错误。将 SELinux 设置为 permissive 并不能解决问题。如何诊断问题并解决问题?

最佳答案

systemctl status tomcat 的问题在于它只会显示来自服务的最新日志条目

journalctl -x -u tomcat 将显示上次日志轮换的日志条目。

关于 systemctl 的更多信息和 journalctl

关于java - systemctl status tomcat 返回 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java :950),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36204889/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com