Set thread names on agent thread pools

Description

It���s a best practice to name the threads in an executor thread pool with a custom ThreadFactory so that the purpose of these threads is clear in thread dumps and other runtime operational tools. By default these threads are currently called something like "pool-%d-thread-%d", and this is what you���ll see for the agent send thread pools.

I created a patch to do this with thread names like:

  • clojure-agent-send-pool-%d ��� should be fixed # of threads

  • clojure-agent-send-off-pool-%d ��� will be added and removed over time

The patch is attached and I have a signed CA.

Environment

None

Activity

Show:

Andy FingerhutJuly 31, 2014 at 4:58 PM

Just a historical note for those doing code/ticket archaeology: This ticket appears to have resulted in the git version 351e05a242740cc415524d03e1d424de516eed75 which you can browse here on Github:

https://github.com/clojure/clojure/commit/351e05a242740cc415524d03e1d424de516eed75

importOctober 13, 2010 at 1:58 AM

Comment made by: importer

stu said: Updating tickets (#276, #280, #378, #437, #448)

importOctober 13, 2010 at 1:58 AM

Comment made by: importer

stu said: Second patch simply recreates first patch in the correct form. Please follow the instructions at http://clojure.org/patches when creating patches.

importOctober 13, 2010 at 1:58 AM

Comment made by: importer

stu said: [[file:cUhT1C1uCr35jCeJe5cbLA]]

Completed

Details

Assignee

Reporter

Approval

Ok

Fix versions

Created June 9, 2010 at 3:32 PM
Updated July 31, 2014 at 4:58 PM
Resolved July 31, 2014 at 4:58 PM