It would be better to keep it short as it get used in logs/stacktrace
etc. So something like "sling-<pool name>-<counter>"
Chetan Mehrotra


On Tue, Dec 1, 2015 at 2:48 PM, Konrad Windszus <konra...@gmx.de> wrote:
> I’m in favour for changing the thread names to the format "Apache Sling - 
> <pool name> -Thread #<counter>”
> Konrad
>
>
>> On 01 Dec 2015, at 10:15, Julian Sedding <jsedd...@gmail.com> wrote:
>>
>> Hi all
>>
>> Sling Thread Support (aka Commons Threads) uses an underlying
>> java.util.concurrent.ThreadPoolExecutor. By default this leads to
>> thread names like "pool-1-thread-5".
>>
>> I was wondering whether we should change the thread names so it is
>> clear they are being managed by Sling Thread Support. Also, since
>> Pools can be named, it may make sense to include the pool name. I
>> imagine something along the lines of "Apache Sling - <pool name> -
>> Thread #<counter>", e.g. "Apache Sling - Job Thread Pool - Thread #3".
>>
>> What do others think? Any objections? If there is agreement, I'll
>> create a JIRA issue and go ahead with the implementation.
>>
>> Regards
>> Julian
>

Reply via email to