Aw: Re: [log4j] performance issue 2.22.1 vs. 2.22.0

2024-01-29 Thread andpro77
Thank you both for the responses.   You asked for the log4j configuration. I try to extract the relevant parts.   Indeed the application has got a DynamicThresholdFilter in the game. There two appenders referenced from the loggers, one usual RollingFile appender wi

Re: [log4j] performance issue 2.22.1 vs. 2.22.0

2024-01-29 Thread Piotr P. Karwasz
Hi Ralph, On Mon, 29 Jan 2024 at 20:45, Ralph Goers wrote: > It is pretty obvious that the change you made has dire consequences. I don't dispute that. ;-) I just want to make sure it is the **only** thing that killed performance. As Andreas says, only a couple of events are logged. If the proc

Re: [log4j] performance issue 2.22.1 vs. 2.22.0

2024-01-29 Thread Ralph Goers
> On Jan 29, 2024, at 12:35 PM, Piotr P. Karwasz > wrote: > > Hi Andreas, > > On Mon, 29 Jan 2024 at 18:45, wrote: >> Note, this happens even though effectively just two lines are really logged. >> If DEBUG or TRACE were enabled in the loggers, then tens if not hundreds of >> thousands of

Re: [log4j] performance issue 2.22.1 vs. 2.22.0

2024-01-29 Thread Piotr P. Karwasz
Hi Andreas, On Mon, 29 Jan 2024 at 18:45, wrote: > Note, this happens even though effectively just two lines are really logged. > If DEBUG or TRACE were enabled in the loggers, then tens if not hundreds of > thousands of lines would be logged - so definitely, > there is a lot of logging going on

[log4j] performance issue 2.22.1 vs. 2.22.0

2024-01-29 Thread andpro77
Hi, there is a performance issue in Log4j2 2.22.1 compared to 2.22.0. I upgraded just the two files log4j-api-2.22.1.jar and log4j-core-2.22.1.jar, no other file. As an example, in my application, the streaming of about 460 MB slowed down from about 10-15 seconds to more than 1000 seconds. Part