NestableDelegate exception

2007-03-21 Thread Rangaswamy, Karthik
Hi, I am getting NestableDelegate exception when XMLLayout.format is called. Below is the stack trace of the call. This is getting repeatedly invoked for every 5 sec thus causing the thread to hang and finally results in the slow down of web application. Any help would be much appreciated.

Log4j and JMX

2007-03-21 Thread Gim
Hi all, For better managing log4j, I propose add 2 features: 1. List all available loggers thru jmx 2. Correct threshold attribute type of log4j:type=HierarchyDynamicMBean mbean. Now MBeanAttributeInfo return String type for this attribute, but actually returned type of the attribute is Lev

RE: java.lang.NoSuchFieldError: level

2007-03-21 Thread andrei.lenkei
Hello, Yes, the category is set to info. I cleaned up my classpath, removing several un-needed jar:s and that fixed the problem. I'm guessing one of the jar:s contained log4j classes. Regards, Andrei -Original Message- From: Ruben Gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, Mar

Weird memory consumption

2007-03-21 Thread Wozniak, Marcin
Hi, We have been investigating memory leaks in the system we write (JAVA) and we experianced the following problem on Red Hat 4.0 system. Even though JConsole, and JProfiler do not show any improper memory consumption in JVM, operation system tools like Top show that JVM process consumes a lot

RE: Weird memory consumption

2007-03-21 Thread Andrew Marlow
Wozniak, Marcin wrote: > Hi, > > We have been investigating memory leaks in the system we > write (JAVA) and we experianced the following problem on Red > Hat 4.0 system. > > Even though JConsole, and JProfiler do not show any improper > memory consumption in JVM, operation system tools like Top

RE: Weird memory consumption

2007-03-21 Thread Wozniak, Marcin
I do not think using valgrind is even possible. Tested software is quite complex, multithreaded server application. Beside the problem insists after few days of long-duration tests. BTW do you really think that Valgrind is useful for Java application profiling? I guess it is more useful in C++ ap

DailyRollingFileAppender and RollingFileAppender

2007-03-21 Thread Martin Ritchie
Hello, I am a long time user of log4j I the current project I'm working on has a new requirement for rotating log files. I was happy to see that this can been done by log4j. However the two classes I saw were these: - DailyRollingFileAppender - Rotates based on dateFormat - RollingFileAppender

Re: Weird memory consumption

2007-03-21 Thread James Stauffer
What is your log4j configuration? On 3/21/07, Wozniak, Marcin <[EMAIL PROTECTED]> wrote: Hi, We have been investigating memory leaks in the system we write (JAVA) and we experianced the following problem on Red Hat 4.0 system. Even though JConsole, and JProfiler do not show any improper memory

Re: DailyRollingFileAppender and RollingFileAppender

2007-03-21 Thread James Stauffer
1.2: Not will included appenders but I think someone made a custom appender to do it. Search the archives. 1.3: I think it may be supported. On 3/21/07, Martin Ritchie <[EMAIL PROTECTED]> wrote: Hello, I am a long time user of log4j I the current project I'm working on has a new requirement fo

RE: Weird memory consumption

2007-03-21 Thread Andrew Marlow
Wozniak, Marcin wrote: > I do not think using valgrind is even possible. Tested > software is quite complex, multithreaded server application. > Beside the problem insists after few days of long-duration tests. ok then, maybe not > > BTW do you really think that Valgrind is useful for Java

Re: DailyRollingFileAppender and RollingFileAppender

2007-03-21 Thread Fulg de Nea
Check this class: * CompositeRollingAppender combines RollingFileAppender and DailyRollingFileAppender * It can function as either or do both at the same time (making size * based rolling files like RollingFileAppender until a data/time boundary * is crossed at which time it rolls all of t

Re: DailyRollingFileAppender and RollingFileAppender

2007-03-21 Thread Martin Ritchie
Sorry I was looking at the Intellij project built by maven. it didn't include the contribs code. I see Kevin Steppe created a CompositeRollingAppender that does just this. Sorry should have paid more attention to the actual code and the archives. That said as it is part of contrib this seems to ha

Re: Log4j Date logging issue

2007-03-21 Thread James Stauffer
I would attemp to make a small program that prints the current data and time in the same format to confirm that it is the JRE or OS. You may need JRE patch that supports the changed DST dates. On 3/20/07, Visvanathan, Meenakshi <[EMAIL PROTECTED]> wrote: Hi, We use log4j.jar to log our applica

Preventing re-initialization or re-configuration

2007-03-21 Thread Dave Levitt
I was trying to find out where my logging output was going in a J2EE application [WebSphere _and_ ATG Dynamo - things just don't get any uglier than that] When I enabled log4j.debug, I saw that the log4j system was being initialized twice, once by my log4j.xml and a second time from a log4j.prope

Re: Preventing re-initialization or re-configuration

2007-03-21 Thread James Stauffer
If you can pursuade the library author to make a change maybe you can persuade them to follow the best practices for libraries which strongly discourage explictit configuration. There is discussion about this in the archives. Setting up repository selectors might be helpful. On 3/21/07, Dave Le

Re: Preventing re-initialization or re-configuration

2007-03-21 Thread Jacob Kjome
Ultimately, logging is the concern of the user, not the library creator. As such, the library creator should defer to the user to define the logging configuration (or not if the user doesn't want to). BTW, you'll find good list archives here http://marc.info/?l=log4j-user&r=1&w=2 Jake Quo

Re: Preventing re-initialization or re-configuration

2007-03-21 Thread Dave Levitt
My gmail archive for this list doesn't go back too far. What is the time frame for that discussion? I assume searching for 'library configuration' should be a start. This may also be promoted to a FAQ or 'best practices' document [wiki page], so it becomes a resource to point to ["The consensus i

Re: Log4j Date logging issue

2007-03-21 Thread Scott Heaberlin
Be advised - java date and time calculations will still be inaccurate even if the host OS has been updated with DST 2007 updates on older VM builds. Per the Sun documentation regarding DST updates you still must either patch your affected JRE with the free tz_update program or upgrade to a newer

log4j with web applets

2007-03-21 Thread Luciano
Hi ! I'm testing log4j in web applets. And I'm having questions about configuration files. Which location (path) is used to read the configuration file on applets ? I'm thinking the file is being get from web server, is it ok ? Well, how to setup some configuration on client without affecting

Re: log4j with web applets

2007-03-21 Thread James Stauffer
It loads it from the classpath so just ensure that it is in the applet classpath. On 3/21/07, Luciano <[EMAIL PROTECTED]> wrote: Hi ! I'm testing log4j in web applets. And I'm having questions about configuration files. Which location (path) is used to read the configuration file on applets ? I

Re: log4j with web applets

2007-03-21 Thread Luciano
Many thanks. But, is possible to put the properties in a system folder like jre/lib without changing the classpath ? I already tried it but no success. James Stauffer escreveu: It loads it from the classpath so just ensure that it is in the applet classpath. On 3/21/07, Luciano <[EMAIL PROTE

Logging Domains

2007-03-21 Thread Paul Smith
I've just thought of an idea I'd like to share. Most likely someone has thought of this before, and probably implemented it, but just in case... One of the main weakness of logging in log4j, and probably other logging frameworks is that, for the most part, the Logger is tied to one dimen

RE: Logging Domains

2007-03-21 Thread Scott Deboy
I've wanted this feature for a long time - essentially, adding tagging support to log4j! I like the varargs idea - for backward compatibility we could use a string array (or a Set of strings)? Let's get a couple of API options posted and hopefully some feedback from users - this could be the m