You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/07 20:35:00 UTC
[jira] [Commented] (LOG4J2-2391) Investigate ThrowableProxy
performance
[ https://issues.apache.org/jira/browse/LOG4J2-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16572290#comment-16572290 ]
ASF GitHub Bot commented on LOG4J2-2391:
----------------------------------------
GitHub user cakofony opened a pull request:
https://github.com/apache/logging-log4j2/pull/202
[LOG4J2-2391] Improve ThrowableProxy performace on java 9+
Share the SecurityManager implementation of getCurrentStackTrace
with the java 9 implementation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cakofony/logging-log4j2 java9_getcurrentstacktrace
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/202.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #202
----
commit 52bf8569e8e9881d0999156c31d99b99f28e6e73
Author: Carter Kozak <ck...@...>
Date: 2018-08-07T20:27:10Z
[LOG4J2-2391] Improve ThrowableProxy performace on java 9+
Share the SecurityManager implementation of getCurrentStackTrace
with the java 9 implementation.
----
> Investigate ThrowableProxy performance
> --------------------------------------
>
> Key: LOG4J2-2391
> URL: https://issues.apache.org/jira/browse/LOG4J2-2391
> Project: Log4j 2
> Issue Type: Task
> Affects Versions: 2.11.1
> Reporter: Carter Kozak
> Assignee: Carter Kozak
> Priority: Major
>
> I've noticed when applications get into a state where they log more exceptions than usual (e.g. network connectivity issues) thread dumps contain many threads working inside of ThrowableProxy, loading classes.
> A simple jmh benchmark of a pattern layout writing to disk with a message and throwable appears to write about 160,000 events/second using a throwable, and 2,000 events/second using ThrowableProxy.
> I will investigate to understand where the substantial difference is coming from, and clean up the benchmarks to add to the log4j2 benchmarking module.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)