Bug 52955

Summary: Add a ThreadFactory implementation to the ExecutorService used to deploy applications
Product: Tomcat 7 Reporter: Pid <bugzilla>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: ThreadFactory implementation for ContainerBase ExecutorService

Description Pid 2012-03-21 07:55:31 UTC
Created attachment 28488 [details]
ThreadFactory implementation for ContainerBase ExecutorService

The current implementation of the ExecutorService (in ContainerBase) uses the default thread factory, producing Threads named "pool-1-thread-1".

Thread properties can be customised using a thread factory, modifying the naming scheme will help users identify container threads.

Patch attached.
Comment 1 Konstantin Kolinko 2012-06-09 13:35:53 UTC
This feature has been independently implemented by Keiichi Fujino when fixing bug 53342 in r1345026 and will be in 7.0.28.

The thread names are container.getName() + "-startStop-" + number.
E.g. "localhost-startStop-1".