Score:0

Tomcat shutting down unexpectedly

cl flag

We are using tomcat and deploying in aws-ec2 .

The server is stopping without giving any proper logs. The only things I have is below mentioned.

I tried increasing the swap memory, which made it work for some time, but then again the situation is repeating, nothing in /var/logs, demsg either.

Please find the logs below.

2021-11-09 17:34:50.743 DEBUG 1679 --- [nio-443-exec-64] c.e.ets.filter.ETSTokenValidatorFilter : Inside ETSTokenValidatorFilter 2021-11-09 17:35:10.745 DEBUG 1679 --- [nio-443-exec-37] c.e.ets.filter.ETSTokenValidatorFilter : Inside ETSTokenValidatorFilter 2021-11-09 17:35:20.752 DEBUG 1679 --- [nio-443-exec-55] c.e.ets.filter.ETSTokenValidatorFilter : Inside ETSTokenValidatorFilter 09-Nov-2021 17:35:30.483 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-80"] 09-Nov-2021 17:35:30.489 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["https-openssl-nio-443"] 09-Nov-2021 17:35:30.490 INFO [Thread-1626] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 09-Nov-2021 17:36:00.739 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsserver] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:502) java.util.TimerThread.mainLoop(Timer.java:526) java.util.TimerThread.run(Timer.java:505) 09-Nov-2021 17:36:00.739 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsserver] appears to have started a thread named [reactor-tcp-epoll-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: io.netty.channel.epoll.Native.epollWait0(Native Method) io.netty.channel.epoll.Native.epollWait(Native.java:132) io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:281) io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:351) 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.lang.Thread.run(Thread.java:748) 09-Nov-2021 17:36:00.740 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsserver] appears to have started a thread named [reactor-tcp-epoll-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: io.netty.channel.epoll.Native.epollWait0(Native Method) io.netty.channel.epoll.Native.epollWait(Native.java:132) io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:281) io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:351) 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.lang.Thread.run(Thread.java:748) 09-Nov-2021 17:36:00.746 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsserver] appears to have started a thread named [reactor-tcp-epoll-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: io.netty.channel.epoll.Native.epollWait0(Native Method) io.netty.channel.epoll.Native.epollWait(Native.java:132) io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:281) io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:351) 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.lang.Thread.run(Thread.java:748) 09-Nov-2021 17:36:00.747 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsserver] appears to have started a thread named [reactor-tcp-epoll-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: io.netty.channel.epoll.Native.epollWait0(Native Method) io.netty.channel.epoll.Native.epollWait(Native.java:132) io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:281) io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:351) 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.lang.Thread.run(Thread.java:748) 09-Nov-2021 17:36:00.747 SEVERE [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [etsserver] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@21fc5770]) and a value of type [io.netty.util.internal.InternalThreadLocalMap] (value [io.netty.util.internal.InternalThreadLocalMap@5b1eb44f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 2021-11-09 17:36:00.754 INFO 1679 --- [ Thread-1626] io.hawt.web.auth.AuthenticationFilter : Destroying hawtio authentication filter 09-Nov-2021 17:36:01.821 WARNING [Thread-1626] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [etsauth] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:502) java.util.TimerThread.mainLoop(Timer.java:526) java.util.TimerThread.run(Timer.java:505) 09-Nov-2021 17:36:01.861 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-80"] 09-Nov-2021 17:36:01.863 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["https-openssl-nio-443"] 09-Nov-2021 17:36:01.869 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-80"] 09-Nov-2021 17:36:01.870 INFO [Thread-1626] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["https-openssl-nio-443"]

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.