[rabbitmq-discuss] Thread naming (java client)

Dennis Kieselhorst mail at dekies.de
Mon Nov 11 16:01:38 GMT 2013


Hi,

proper thread naming is useful for thread dump analysis. It's possible to 
pass an own ExecutorService to the ConnectionFactory. This way I can 
influence the naming of threads created by the ConsumerWorkService. 

Unfortunately it's not possible to customize the naming for the heartbeats, 
so these threads are named like "pool-20-thread-1".

Could you modify 
com.rabbitmq.client.impl.HeartbeatSender.createExecutorIfNecessary() and 
pass a ThreadFactory with a proper name format (like 
"HeartbeatSenderThread" or something similar)?

Thanks in advance
Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131111/086aa13f/attachment.htm>


More information about the rabbitmq-discuss mailing list