On 25/08/2020 16:40, ratatouille wrote: > Mark Thomas <ma...@apache.org> schrieb am 25.08.20 um 11:31:59 Uhr: > >> On 25/08/2020 11:07, ratatouille wrote: > >>> I am running openmeetings on a CentOS 8 server and start it with startup.sh >>> in the bin-folder. >>> >>> The problem is when I execute shutdown.sh the process still exists after. >>> I have to kill it manually. > >>> I was told these scripts are un-modified scripts of Apache Tomcat >>> 9.0.37, that's why I am asking here for help. >>> >>> Any hint on this? >> >> Take a Java thread dump of the still running process. That should point >> you towards what hasn't shutdown properly. > > I see some warnings and stack traces when I execute shutdown.sh. > For example:
Those are all application issues. The application should shut itself down cleanly. Tomcat is complaining because it hasn't. Mark > > 25-Aug-2020 17:31:49.246 WARNUNG [main] > org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The > web application [openmeetings > ] appears to have started a thread named [nioEventLoopGroup-3-4] but has > failed to stop it. This is very likely to create a memory leak. Stack tr > ace of thread: > java.base@11.0.8/java.lang.Thread.sleep(Native Method) > > io.netty.util.concurrent.SingleThreadEventExecutor.confirmShutdown(SingleThreadEventExecutor.java:790) > io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:525) > > io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) > io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) > > io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) > java.base@11.0.8/java.lang.Thread.run(Thread.java:834) > 25-Aug-2020 17:31:49.280 SCHWERWIEGEND [main] > org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks > The web application [o > penmeetings] created a ThreadLocal with key of type [java.lang.ThreadLocal] > (value [java.lang.ThreadLocal@14a07c8d]) and a value of type [io.nett > y.util.internal.InternalThreadLocalMap] (value > [io.netty.util.internal.InternalThreadLocalMap@6096444e]) but failed to > remove it when the web app > lication was stopped. Threads are going to be renewed over time to try and > avoid a probable memory leak. > 25-Aug-2020 17:31:49.289 INFORMATION [main] > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler > ["http-nio-5080"] > 25-Aug-2020 17:31:49.296 INFORMATION [main] > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler > ["https-jsse-nio-5443"] > 25-Aug-2020 17:31:49.302 INFORMATION [main] > org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler > ["http-nio-5080"] > 25-Aug-2020 17:31:49.305 INFORMATION [main] > org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler > ["https-jsse-nio-5443"] > 25-Aug-2020 17:31:50.921 INFORMATION [mysql-cj-abandoned-connection-cleanup] > org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResour > ceLoading Illegal access: this web application instance has been stopped > already. Could not load []. The following stack trace is thrown for debu > gging purposes as well as to attempt to terminate the thread which caused the > illegal access. > java.lang.IllegalStateException: Illegal access: this web application > instance has been stopped already. Could not load []. The following > stack trace is thrown for debugging purposes as well as to attempt to > terminate the thread which caused the illegal access. > at > org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1385) > at > org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1038) > at > com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117) > at > com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:84) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > > The output of the shutdown is a lot longer than the above. > > I have no clue about Java and tomcat so I can't do anything about this. > > Andreas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org