Re: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-26 Thread Piotr P. Karwasz
of Log4j is concerned, our upcoming 3.0.0-beta2 will feature a separate `log4j-async-logger` artifact with a non-optional dependency on `com.lmax.disruptor:disruptor`[3]. We hope to relieve users from the burden of upgrading the Disruptor library themselves and rely on the transitive dependency in `

RE: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-26 Thread joan.balaguero
: Async logger not logging after upgrading tomcat, jdk and log4j Hi Joan, On Thu, 25 Jan 2024 at 12:06, wrote: > My application has been using async logging for years by setting this env > variable on tomcat 8.5.x running on java 11 with log4j-2.15/6/7/8/9: > -DLog4jContex

RE: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread joan.balaguero
he.logging.log4j2:type=55494dde,component=StatusLogger DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=55494dde,component=ContextSelector DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=55494dde,component=Appenders,name=DefaultConsole-2 Joan. -Original Message- From:

RE: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread joan.balaguero
Hello, Here is the trace when starting tomcat with '-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector': https://gist.github.com/joanbalaguero/1fa286417bfc9dbd3ce75e043bd26f3d It seems the async contexts are started, but maybe someone can see something wrong

RE: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread joan.balaguero
: Log4J Users List Subject: Re: Async logger not logging after upgrading tomcat, jdk and log4j Hello, Check the dependency hierarchy, which version of log4j is being used. I had faced similar issue, even though if I specified some particular version of log4j, maven was not picking that

RE: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread joan.balaguero
Hi Piotr, I already did it ... no success. Thanks, Joan. -Original Message- From: Piotr P. Karwasz Sent: Thursday, January 25, 2024 1:20 PM To: Log4J Users List Subject: Re: Async logger not logging after upgrading tomcat, jdk and log4j Hi Joan, On Thu, 25 Jan 2024 at 12:06

Re: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread Piotr P. Karwasz
Hi Joan, On Thu, 25 Jan 2024 at 12:06, wrote: > My application has been using async logging for years by setting this env > variable on tomcat 8.5.x running on java 11 with log4j-2.15/6/7/8/9: > -DLog4jContextSelector=org.apache.logging.log4j.core.async.BasicAsyncLoggerContextSelector > > Now we

Re: Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread Ganesh S
Hello, Check the dependency hierarchy, which version of log4j is being used. I had faced similar issue, even though if I specified some particular version of log4j, maven was not picking that particular version though there were no other dependencies which were using log4j at any nested level. F

Async logger not logging after upgrading tomcat, jdk and log4j

2024-01-25 Thread joan.balaguero
Hello, I would like to ask about this issue before starting to post debug logs. My application has been using async logging for years by setting this env variable on tomcat 8.5.x running on java 11 with log4j-2.15/6/7/8/9: -DLog4jContextSelector=org.apache.logging.log4j.core.async.BasicAsyncLogg

Async logger context selector creates a throwable in JSON layout

2018-05-11 Thread Alexander Magnusson
Hello, I'm currently migrating our codebase to Log4j2 (2.9.1) in a Tomcat 9.0.7 environment, and while testing different configurations I noticed a weird, what i think also undocumented, difference between the standard usage and when starting with -DLog4jContextSelector=org.apa che.logging.log4j.co

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-18 Thread Mikael Ståldal
t; o5GNDvnDLF8TE&m=hk-mti7hK6agTdNqpiQVl3gpA4ri4hrn2pxHf_8maIE&s= >> QykinLq8RJFWq5YIigJq8wWizXFOxKy3DWeXTomCnaM&e= >> > >> >(Shameless plug) Every java main() method deserves >> https://urldefense.proofpoint.com/v2/url?u=http-3A

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-16 Thread Fröstl , Christian
8IrwNKOtkVU&r=37nF0SnGtdjmcblOpYG7cKwaPDc1GW >> o5GNDvnDLF8TE&m=hk-mti7hK6agTdNqpiQVl3gpA4ri4hrn2pxHf_8maIE&s= >> QykinLq8RJFWq5YIigJq8wWizXFOxKy3DWeXTomCnaM&e= >> > >> >(Shameless plug) Every java main() method deserves

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-04 Thread Mikael Ståldal
c1GWo5GNDvnDLF8TE&m=hk- mti7hK6agTdNqpiQVl3gpA4ri4hrn2pxHf_8maIE&s=w_ w2x7qWvjFgf1pKLN7kb5Q534FwglDl16TI5-OArl4&e= > >> On Dec 20, 2017, at 2:03, Fröstl, Christian < [email protected]> wrote: >> >> Hi, >> >> I current

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-03 Thread Matt Sicker
.proofpoint.com/v2/url?u=http-3A__picocli. > info&d=DwIFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r= > 37nF0SnGtdjmcblOpYG7cKwaPDc1GWo5GNDvnDLF8TE&m=hk- > mti7hK6agTdNqpiQVl3gpA4ri4hrn2pxHf_8maIE&s=w_ > w2x7qWvjFgf1pKLN7kb5Q534FwglDl16TI5-OArl4&e= > > >

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-03 Thread Fröstl , Christian
> >> On Dec 20, 2017, at 2:03, Fröstl, Christian wrote: >> >> Hi, >> >> I currently don’t find any documentation regarding the fallback methods of the log4j2 async logger. >> What happens when the AsyncLogger.RingBu

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-03 Thread Remko Popma
7kb5Q534FwglDl16TI5-OArl4&e= > >> On Dec 20, 2017, at 2:03, Fröstl, Christian >> wrote: >> >> Hi, >> >> I currently don’t find any documentation regarding the fallback methods of >> the log4j2 async logger. >> What happens when the AsyncLogger.RingBuf

Re: [External] Re: Log4j2 Async logger fallback method

2018-01-03 Thread Fröstl , Christian
Christian wrote: > > Hi, > > I currently don’t find any documentation regarding the fallback methods of the log4j2 async logger. > What happens when the AsyncLogger.RingBufferSize is too small to log all entries from a burst? Will the application fall back

Re: Log4j2 Async logger fallback method

2017-12-21 Thread Remko Popma
java main() method deserves http://picocli.info > On Dec 20, 2017, at 2:03, Fröstl, Christian > wrote: > > Hi, > > I currently don’t find any documentation regarding the fallback methods of > the log4j2 async logger. > What happens when the AsyncLogger.RingBufferSize

Log4j2 Async logger fallback method

2017-12-19 Thread Fröstl , Christian
Hi, I currently don’t find any documentation regarding the fallback methods of the log4j2 async logger. What happens when the AsyncLogger.RingBufferSize is too small to log all entries from a burst? Will the application fall back into sync logging and slow down the application or will the new

Re: Question about async logger wait strategies

2016-06-14 Thread Anthony Maire
If the sources have not been moved, it's still considered as experimental on master (and it was still experimental on 3.3.5-rc2 tag) https://github.com/LMAX-Exchange/disruptor/blob/master/src/main/java/com/lmax/disruptor/LiteBlockingWaitStrategy.java 2016-06-14 7:15 GMT+02:00 Gary Gregory : >

Re: Question about async logger wait strategies

2016-06-13 Thread Gary Gregory
On Mon, Jun 13, 2016 at 9:51 PM, Anthony Maire wrote: > Basically you want a logging framework to have as little impact as possible > on the application. That's why the sleeping strategy is a good > general-purpose choice : no allocation, no lock for the application > threads, and a CPU consumpti

Re: Question about async logger wait strategies

2016-06-13 Thread Anthony Maire
Basically you want a logging framework to have as little impact as possible on the application. That's why the sleeping strategy is a good general-purpose choice : no allocation, no lock for the application threads, and a CPU consumption when "idle" that will stay pretty low on most OS (it roughly

Re: Question about async logger wait strategies

2016-06-13 Thread Remko Popma
Currently there isn't but there's no real reason not to. That reminds me we should add LiteBlocking (a standard Disruptor wait strategy). Sent from my iPhone > On 2016/06/14, at 5:50, Matt Sicker wrote: > > Also, is there a way to specify a custom WaitStrategy, or is that pointless? > >> On

Re: Question about async logger wait strategies

2016-06-13 Thread Remko Popma
The busy-spin wait strategy is not something I want to promote since it basically dedicates a full core to the logging background thread. It's there mostly for testing and perhaps for hardcore users who are familiar with the Disruptor. Sent from my iPhone > On 2016/06/14, at 3:24, Matt Sicker

Re: Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
Also, is there a way to specify a custom WaitStrategy, or is that pointless? On 13 June 2016 at 13:24, Matt Sicker wrote: > The code has a case for the busy spin strategy, but it's not listed on > this page: . Is > this unsupported or shoul

Question about async logger wait strategies

2016-06-13 Thread Matt Sicker
The code has a case for the busy spin strategy, but it's not listed on this page: . Is this unsupported or should it be added to the docs? -- Matt Sicker

Re: Async Logger

2016-03-15 Thread Ralph Goers
> We are using log4j2 in Apache Hive project. We are exploring the option of > using Async Logger. From the doc, > https://logging.apache.org/log4j/2.x/manual/async.html#AllAsync the > requirements for async loggers are the presence of disruptor jar in classpath > and the system prope

Re: Async Logger

2016-03-15 Thread Remko Popma
When you say "enables Async logging", what exactly do you mean? What do you observe? Sent from my iPhone > On 2016/03/16, at 11:08, Prasanth Jayachandran wrote: > > Hi All > > We are using log4j2 in Apache Hive project. We are exploring the option of > usin

Async Logger

2016-03-15 Thread Prasanth Jayachandran
Hi All We are using log4j2 in Apache Hive project. We are exploring the option of using Async Logger. From the doc, https://logging.apache.org/log4j/2.x/manual/async.html#AllAsync the requirements for async loggers are the presence of disruptor jar in classpath and the system property

RE: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-30 Thread SMITH, CURTIS
[email protected]] Sent: Tuesday, July 30, 2013 10:14 AM To: Log4J-Users List Subject: Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1 It may be possible (but a bit of a hack) to use async loggers without reflection. It involves compil

Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-30 Thread Remko Popma
It may be possible (but a bit of a hack) to use async loggers without reflection. It involves compiling your own version of the com.lmax.disruptor.util.Util class where you replace the implementation of the #getUnsafe() method with a simple call to sun.misc.Unsafe.getUnsafe(). Obviously this is n

Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread Ralph Goers
.log4j.core.selector.BasicContextSelector". > > FWIW I'm having to give up on async logger because my VM doesn't support > reflection, and unless I'm not understanding this new architecture, this > exception says I'm locked out from testing asy

RE: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread SMITH, CURTIS
#x27;t the default be the simplest? Is there benefit from me setting: "Log4jContextSelector" to "org.apache.logging.log4j.core.selector.BasicContextSelector". FWIW I'm having to give up on async logger because my VM doesn't support reflection, and unless I'm

Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread Ralph Goers
a.lang.Class.getDeclaredField(Class.java:487) >at com.lmax.disruptor.util.Util$1.run(Util.java:102) >at com.lmax.disruptor.util.Util$1.run(Util.java:99) >at > java.security.AccessController.doPrivileged(AccessController.java:255) >... 40 more > >

RE: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread SMITH, CURTIS
at java.security.AccessController.doPrivileged(AccessController.java:255) ... 40 more -Original Message- From: Ralph Goers [mailto:[email protected]] Sent: Monday, July 29, 2013 11:05 AM To: Log4J Users List Subject: Re: reflection? RE: async logger on slow single core env performs 50% worse than

Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread Ralph Goers
getCallerClass = method; >> 231 break; >> 232 } >> 233 } >> 234 } catch (final ClassNotFoundException cnfe) { >> 235 LOGGER.debug("sun.reflect.Reflection is not installed"); >> //

Re: reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread Ralph Goers
break; > 232 } > 233 } > 234 } catch (final ClassNotFoundException cnfe) { > 235 LOGGER.debug("sun.reflect.Reflection is not installed"); // > ï∞ƒ > 236 > > -Original Message

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread Remko Popma
Hang on! By fish tagging do you mean you use logger#entry, #exit, #catching? These methods walk the stack trace to determine the location (class, method) which will give you a *huge* performance penalty! If you're using async logging this is 20x slower, for sync logging (slower to begin with) it

reflection? RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread SMITH, CURTIS
} catch (final ClassNotFoundException cnfe) { 235 LOGGER.debug("sun.reflect.Reflection is not installed"); //  236 -Original Message- From: Remko Popma [mailto:[email protected]] Sent: Saturday, July 27, 2013 5:40 AM T

RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-29 Thread SMITH, CURTIS
Hi Remko / log4j2, - Tnx for the correction, I'll retest async logger: System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"); - Before I recompile with a test run for async logger I'll edit log4j2.xml an

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-27 Thread Remko Popma
than threads or async logging. I'd be interested in your answers to my questions below. Best regards, Remko From: Remko Popma To: Log4J Users List Sent: Saturday, July 27, 2013 12:53 PM Subject: Re: async logger on slow single core env performs 50% worse

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread Remko Popma
Log4J Users List Sent: Saturday, July 27, 2013 6:55 AM Subject: RE: async logger on slow single core env performs 50% worse than log4j v1 LOL well that's obvious now.  :)  It was more a case of wishful thinking and why not give it a "try".    But it's still odd t

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread Ralph Goers
>> curt >> >> -Original Message- >> From: Ralph Goers [mailto:[email protected]] >> Sent: Friday, July 26, 2013 5:34 PM >> To: Log4J Users List >> Subject: Re: async logger on slow single core env performs 50% worse than >> log4j v1 >>

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread Gary Gregory
it's still odd that my attempts to slim it > down It's still 2x worse than v1. Something else is in play. > > curt > > -Original Message- > From: Ralph Goers [mailto:[email protected]] > Sent: Friday, July 26, 2013 5:34 PM > To: Log4J Users Lis

RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread SMITH, CURTIS
ph Goers [mailto:[email protected]] Sent: Friday, July 26, 2013 5:34 PM To: Log4J Users List Subject: Re: async logger on slow single core env performs 50% worse than log4j v1 I'm curious why you are even trying to use Async anything with a single core environment (unless it is hyper-threaded).

Re: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread Ralph Goers
t; performance, I'm guessing that there's still one or more threads under the > hood vs V1 with: sync Logger and RollingFile. > > Any guesses for me to try? > > Tnx curt > > _ > From: SMITH, CURTIS > Sent: Friday,

RE: async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread SMITH, CURTIS
ny guesses for me to try? Tnx curt _ From: SMITH, CURTIS Sent: Friday, July 26, 2013 1:16 PM To: [email protected] Subject: async logger on slow single core env performs 50% worse than log4j v1 I suspect a slow single core env is a new scenario for v2 and async l

async logger on slow single core env performs 50% worse than log4j v1

2013-07-26 Thread SMITH, CURTIS
I suspect a slow single core env is a new scenario for v2 and async logger. My view is that there's a mis match between v2's async logger thread design that works great on multi-core envs and this embedded slow single core env... Sooo I need to try a few different configurations t

Re: Confused: want low latency: do I need BOTH async logger AND async appender??

2013-07-23 Thread Remko Popma
. Let me know if you hit any snags. Regards, Remko Sent from my iPhone On 2013/07/24, at 0:39, "SMITH, CURTIS" wrote: > http://logging.apache.org/log4j/2.x/manual/async.html > > This URL describes that v2 has both async logger and async appender. What > is the sugges

Confused: want low latency: do I need BOTH async logger AND async appender??

2013-07-23 Thread SMITH, CURTIS
http://logging.apache.org/log4j/2.x/manual/async.html This URL describes that v2 has both async logger and async appender. What is the suggested config for an embedded situation where I want low latency, nothing fancy? I've had do this in code since we don't own the cmd line: