[
https://issues.apache.org/jira/browse/LOG4J2-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17515761#comment-17515761
]
Ralph Goers commented on LOG4J2-3459:
-------------------------------------
I have also done this using YourKit. YourKit integrates with Intellij so you
can either manage it via YourKit or IntelliJ. Typically you would configure the
YourKit agent to start profiling immediately on start.
Note that the log4j parent pom includes the configuration for YourKit already
although it probably needs updating and I don't think it has the options set to
profile at startup.
> Reduce use of class static initialization blocks
> ------------------------------------------------
>
> Key: LOG4J2-3459
> URL: https://issues.apache.org/jira/browse/LOG4J2-3459
> Project: Log4j 2
> Issue Type: Improvement
> Components: API, Core
> Reporter: Matt Sicker
> Priority: Major
>
> There are numerous classes that use static initializer blocks to perform
> computation for caching some results. These should all generally be deferred
> until some other reference to the class such as instantiation of use of a
> singleton getter method.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)