Yes.  It has a setBufferSize method.

-----Original Message-----
From: j d [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 7:46 AM
To: Log4J Users List
Subject: Re: Log4J date/time output problem


Is it possible to control the size of AsyncAppender's
buffer?

Thanks,
Yuval E.
--- Ceki Gülcü <[EMAIL PROTECTED]> wrote:

> 
> Yoval,
> 
> One possible explanation is the order in which
> AsyncAppender wakes up
> one of threads waiting to push events on
> AsyncAppender's buffer, when
> this buffer is full.
> 
>
http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()
> 
> public final void notify()
> 
>    Wakes up a single thread that is waiting on this
> object's monitor. If
>    any threads are waiting on this object, one of
> them is chosen to be
>    awakened. The choice is ARBITRARY and occurs at
> the discretion of the
>    implementation. A thread waits on an object's
> monitor by calling one
>    of the wait methods.
> 
> Assuming logs are generated at a fast face, the
> AsyncAppender's buffer
> will become full fairly quickly and frequently.
> 
> If you would like me to investigate this further,
> then could you
> please provide a sample of the logs? I am only
> interested in the
> timestamps, the logger names and the thread names. A
> few dozen logs
> surrounding the unorderly behavior should suffice.
> 
> At 03:32 PM 1/11/2005, you wrote:
> >Hello,
> >I'm using Log4J 1.2.6 with the following
> >configuration:
> >AsyncAppender writing to
> >RollingFileAppender which is using PatternLayout
> with
> >conversion pattern
> >"%p | %d{ISO8601} | %t | %x | %c | %m%n".
> >My platform is JDK 1.4.2 on Linux redhat 9.0 .
> >
> >Lately, when I loaded my system to check
> performence,
> >I noticed that some lines in the log file have
> >incosistent time values:
> >Sometimes, one line had a timestamp smaller then
> the
> >line before it.
> >I also noticed that the Thread source name for
> these
> >lines is always different (so, in the context of
> one
> >thread, there is no problem).
> >
> >What can be the source of this behavior?
> >
> >Thanks,
> >Yuval
> 
> -- 
> Ceki Gülcü
> 
>    The complete log4j manual:
> http://www.qos.ch/log4j/
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to