永洪社区

标题: tomcat服务启动问题 [打印本页]

作者: 小小白丶    时间: 2022-9-23 11:23
标题: tomcat服务启动问题
麻烦帮忙看下tomcat启动后无法访问系统,日志中的“Web应用程序[ROOT]似乎启动了一个名为[Log4j2-TF-1-Scheduled-1]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:”是什么问题?

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
22-Sep-2022 11:15:30.834 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.54
22-Sep-2022 11:15:30.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:        Sep 28 2021 13:51:49 UTC
22-Sep-2022 11:15:30.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号:      9.0.54.0
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称:      Linux
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:           3.10.0-1127.el7.x86_64
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:              amd64
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:     /usr/local/java/jdk-11.0.16.1
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本:    11.0.16.1+1-LTS-1
22-Sep-2022 11:15:30.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:        Oracle Corporation
22-Sep-2022 11:15:30.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:     /opt/YonghongX-Suite/tomcat
22-Sep-2022 11:15:30.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:     /opt/YonghongX-Suite/tomcat
22-Sep-2022 11:15:30.854 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.lang=ALL-UNNAMED
22-Sep-2022 11:15:30.855 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.io=ALL-UNNAMED
22-Sep-2022 11:15:30.855 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.util=ALL-UNNAMED
22-Sep-2022 11:15:30.855 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
22-Sep-2022 11:15:30.856 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
22-Sep-2022 11:15:30.856 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.config.file=/opt/YonghongX-Suite/tomcat/conf/logging.properties
22-Sep-2022 11:15:30.856 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
22-Sep-2022 11:15:30.857 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djdk.tls.ephemeralDHKeySize=2048
22-Sep-2022 11:15:30.857 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
22-Sep-2022 11:15:30.857 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xmx20480m
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xms20480m
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:MetaspaceSize=256m
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:G1HeapRegionSize=32m
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:InitiatingHeapOccupancyPercent=35
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:G1ReservePercent=15
22-Sep-2022 11:15:30.858 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:ConcGCThreads=10
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:ParallelGCThreads=10
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:+ParallelRefProcEnabled
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:SoftRefLRUPolicyMSPerMB=0
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xlog:gc*:file=/opt/YonghongX-Suite/tomcat/../Yonghong/log/jvm.log:time:filecount=16
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.awt.headless=true
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
22-Sep-2022 11:15:30.859 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:OnError=/usr/local/java/jdk-11.0.16.1/bin/jstack %p >/opt/YonghongX-Suite/tomcat/logs/thread_stack_%p.log
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:ErrorFile=/opt/YonghongX-Suite/tomcat/logs/hs_err_%p.log
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:OnOutOfMemoryError=/usr/local/java/jdk-11.0.16.1/bin/jmap -dump:format=b,file=/opt/YonghongX-Suite/tomcat/logs/jmap_%p.log %p
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:+ExitOnOutOfMemoryError
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:-OmitStackTraceInFastThrow
22-Sep-2022 11:15:30.860 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dignore.endorsed.dirs=
22-Sep-2022 11:15:30.861 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.base=/opt/YonghongX-Suite/tomcat
22-Sep-2022 11:15:30.861 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.home=/opt/YonghongX-Suite/tomcat
22-Sep-2022 11:15:30.861 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.io.tmpdir=/opt/YonghongX-Suite/tomcat/temp
22-Sep-2022 11:15:30.862 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 在java.library.path:[/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]上找不到基于APR的Apache Tomcat本机库,该库允许在生产环境中获得最佳性能
22-Sep-2022 11:15:31.223 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"]
22-Sep-2022 11:15:31.252 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[724]毫秒内初始化
22-Sep-2022 11:15:31.310 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina]
22-Sep-2022 11:15:31.310 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/9.0.54]
22-Sep-2022 11:15:31.316 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/ROOT]
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
22-Sep-2022 11:15:43.345 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/ROOT]的部署已在[12,029]毫秒内完成
22-Sep-2022 11:15:43.346 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/bi]
Set bi.home: /opt/YonghongX-Suite/Yonghong/bihome.
Database bi properties file not define.
Loading settings from file system: bi.properties
[2022-09-22 11:15:53.679] |-[INFO] |-[] |-[] |-[g5.log.LogService.init(LogService.java:54)] |-[log system initialization successful.]
WARNING: not set security manager!
22-Sep-2022 11:15:55.188 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/bi]的部署已在[11,842]毫秒内完成
22-Sep-2022 11:15:55.189 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/mobile-help-ch]
Sync portal properties file not define.
Sync redis properties file not define.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.lowagie.text.pdf.MappedRandomAccessFile$1 (file:/opt/YonghongX-Suite/Yonghong/product/thirds.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.lowagie.text.pdf.MappedRandomAccessFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
22-Sep-2022 11:16:06.441 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/mobile-help-ch]的部署已在[11,253]毫秒内完成
22-Sep-2022 11:16:06.441 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/mobile-help-en]
22-Sep-2022 11:16:17.297 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/mobile-help-en]的部署已在[10,856]毫秒内完成
22-Sep-2022 11:16:17.298 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/yh-zhelp-ch]
22-Sep-2022 11:16:28.045 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/yh-zhelp-ch]的部署已在[10,748]毫秒内完成
22-Sep-2022 11:16:28.045 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [/opt/YonghongX-Suite/tomcat/webapps/yh-zhelp-en]
22-Sep-2022 11:16:38.241 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[/opt/YonghongX-Suite/tomcat/webapps/yh-zhelp-en]的部署已在[10,195]毫秒内完成
22-Sep-2022 11:16:38.245 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"]
22-Sep-2022 11:16:38.256 信息 [main] org.apache.catalina.startup.Catalina.start [67003]毫秒后服务器启动
23-Sep-2022 09:25:48.538 信息 [main] org.apache.catalina.core.StandardServer.await 通过关闭端口接收到有效的关闭命令。正在停止服务器实例。
23-Sep-2022 09:25:48.540 信息 [main] org.apache.coyote.AbstractProtocol.pause 暂停ProtocolHandler["http-nio-8080"]
23-Sep-2022 09:25:48.547 信息 [main] org.apache.catalina.core.StandardService.stopInternal 正在停止服务[Catalina]
23-Sep-2022 09:25:48.555 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[ROOT]似乎启动了一个名为[Log4j2-TF-1-Scheduled-1]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:[
java.base@11.0.16.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.16.1/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
java.base@11.0.16.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123)
java.base@11.0.16.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182)
java.base@11.0.16.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base@11.0.16.1/java.lang.Thread.run(Thread.java:834)]
java.net.SocketException: Socket closed
        at java.base/java.net.PlainDatagramSocketImpl.receive0(Native Method)
        at java.base/java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:200)
        at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:814)
        at g5.util.KeyHelper$KeyThread.initBroadCast(KeyHelper.java:405)
        at g5.util.KeyHelper$KeyThread.run0(KeyHelper.java:381)
        at g5.thread.GThread.run(GThread.java:199)
23-Sep-2022 09:26:03.722 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[bi]似乎启动了一个名为[Log4j2-TF-2-Scheduled-2]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:[
java.base@11.0.16.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.16.1/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
java.base@11.0.16.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123)
java.base@11.0.16.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182)
java.base@11.0.16.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
java.base@11.0.16.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base@11.0.16.1/java.lang.Thread.run(Thread.java:834)]
23-Sep-2022 09:26:03.722 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[bi]似乎启动了一个名为[Thread-3]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:[
java.base@11.0.16.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.16.1/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
java.base@11.0.16.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
java.base@11.0.16.1/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:433)
app//g5.io.FileTracker.runTrackerAction(FileTracker.java:394)
app//g5.io.FileTracker.access$200(FileTracker.java:34)
app//g5.io.FileTracker$1.run0(FileTracker.java:477)
app//g5.thread.GThread.run(GThread.java:199)]
23-Sep-2022 09:26:03.723 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[bi]似乎启动了一个名为[Thread-5]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:[
java.base@11.0.16.1/java.net.SocketInputStream.socketRead0(Native Method)
java.base@11.0.16.1/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
java.base@11.0.16.1/java.net.SocketInputStream.read(SocketInputStream.java:168)
java.base@11.0.16.1/java.net.SocketInputStream.read(SocketInputStream.java:140)
app//com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
java.base@11.0.16.1/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
java.base@11.0.16.1/java.io.BufferedInputStream.read(BufferedInputStream.java:271)
app//com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
app//com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2182)
app//com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939)
app//com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
app//javax.mail.Service.connect(Service.java:295)
app//javax.mail.Service.connect(Service.java:176)
app//g5.util.KeyHelper.sendEmail(KeyHelper.java:82)
app//g5.util.KeyHelper$KeyThread.run0(KeyHelper.java:382)
app//g5.thread.GThread.run(GThread.java:199)]
23-Sep-2022 09:26:03.723 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads Web应用程序[bi]似乎启动了一个名为[Thread-11]的线程,但未能停止它。这很可能会造成内存泄漏。线程的堆栈跟踪:[
java.base@11.0.16.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.16.1/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
java.base@11.0.16.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
java.base@11.0.16.1/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:433)
app//g5.secure.fs.FSAuthorizationStorage.runUpdater(FSAuthorizationStorage.java:531)
app//g5.secure.fs.FSAuthorizationStorage.access$300(FSAuthorizationStorage.java:33)
app//g5.secure.fs.FSAuthorizationStorage$1.run0(FSAuthorizationStorage.java:579)
app//g5.thread.GThread.run(GThread.java:199)]
23-Sep-2022 09:26:03.730 信息 [main] org.apache.coyote.AbstractProtocol.stop 正在停止ProtocolHandler ["http-nio-8080"]
23-Sep-2022 09:26:03.777 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["http-nio-8080"]


作者: yhdata_yzm    时间: 2022-9-23 11:23
小小白丶 发表于 2022-9-23 12:41
好了好了,服务器防火墙没关,谢谢

好的吧
作者: yhdata_yzm    时间: 2022-9-23 11:39
你吧tomcat的进程杀掉重启过吗
作者: 小小白丶    时间: 2022-9-23 11:56
yhdata_yzm 发表于 2022-9-23 11:39
你吧tomcat的进程杀掉重启过吗

试过了,每次启动都是这个日志
作者: yhdata_yzm    时间: 2022-9-23 12:23
小小白丶 发表于 2022-9-23 11:56
试过了,每次启动都是这个日志

就打不开产品的登录页面么
作者: 小小白丶    时间: 2022-9-23 12:32
yhdata_yzm 发表于 2022-9-23 12:23
就打不开产品的登录页面么

打不开
作者: 小小白丶    时间: 2022-9-23 12:41
小小白丶 发表于 2022-9-23 12:32
打不开

好了好了,服务器防火墙没关,谢谢




欢迎光临 永洪社区 (https://club.yonghongtech.com/) Powered by Discuz! X3.4