What are those Java threads that start with “pool”?

I have a problem with the Tomcat server that cannot be shut down normally I performed a thread dump after issuing the shutdown command. It looks like this:

http://pastebin.com/7SW4wZN9

I think the "suspicious" thread that does not allow VM to shut down is the thread named "pool-4-thread-1" The rest are daemon threads or internal VM threads While trying to find out the purpose of this thread, I noticed that other Java programs can create threads with similar names (for example, jvisualvm can create such threads)

So I wonder if anyone knows what this thread is and how to create it

Solution

These threads may be created by the executorservice you created in your code (directly or indirectly through the Library) and need to be closed (for example, in servletcontextlistener)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>