[ 
https://issues.apache.org/jira/browse/LOG4J2-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178136#comment-16178136
 ] 

ASF subversion and git services commented on LOG4J2-2052:
---------------------------------------------------------

Commit 5602fd13102d0039ebafe74d03ab3b1235dc4444 in logging-log4j2's branch 
refs/heads/master from rpopma
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=5602fd1 ]

LOG4J2-2052 Disable thread name caching by default when running on Java 8u102 
or later.


> Disable thread name caching by default
> --------------------------------------
>
>                 Key: LOG4J2-2052
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2052
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Dan Berindei
>            Assignee: Remko Popma
>            Priority: Minor
>
> We run our tests in parallel with TestNG and we use {{Thread.setName()}} for 
> easy filtering of log messages from a single test. But since LOG4J2-1334, all 
> the thread names are logged as {{TestNG}}, unless we use 
> {{-DAsyncLogger.ThreadNameStrategy=UNCACHED}}.
> JDK 8u102 removed the {{String}} allocation in {{Thread.getName()}} 
> (https://bugs.openjdk.java.net/browse/JDK-8148842), so I suggest changing the 
> default strategy to {{UNCACHED}}. Users of older JDKs will still be able to 
> use {{-DAsyncLogger.ThreadNameStrategy=CACHED}} for the performance 
> improvement.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to