-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Disruptor + many logger.error("aa", new Exception("aaa")),stuck on Th… #3093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…rowableProxyHelperbak#loadClass 1、log4j2.component.properties
@hailshao, thanks for your contribution. Would you mind helping with the following questions, please?
|
1、Which version of Log4j Core are you using? 2、Could you share your log4j2.xml, please? 3、Exception rendering has been rewritten since the last release. Could you see if the most recent 2.25.0-SNAPSHOT is also problematic, please? (Or just build locally from the 2.x tip.) 4、Is it possible for you to switch from %xEx to %ex? (Collecting extended stack trace information is slow, has always been problematic, in particular, while in an async. context, and %ex is just fine in almost all use cases.) |
This is unrelated to your problem, but I wanted to give you the heads up that we changed the official names of the properties you are using in version 2.10 to |
1、jar b) 2.25.0-SNAPSHOT(manual download): 2、DISK WRITE b) speed2(slower) c) speed3(fast) 3、result Please refer to the attachment for details |
Thanks for the heads up. I have opened #3106 to check the cause of the performance loss you have reported and I am closing this PR, since I suppose it is no longer relevant. |
…rowableProxyHelperbak#loadClass
1、log4j2.component.properties
Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
2、for (int i = 0; i < 600000; i++) {
logger.error("aa", aa);
}
3、iotop(linux)only 13M/s
stuck on ThrowableProxyHelper#loadClass
4、 iotop(linux)new way:140M/s