RE: High CPU usage impact to log4j

2009-06-24 Thread Arica
Yup...but...you know, I cannot do the trouble shooting on the Customer Field...that's not permitted. That's why I always want to understand in which case the log4j and "kill -3" will not work correctly. I doubt that maybe I need to involve SUN support to see why the JVM will not handle the "kill -

Re: AW: - Log4j File appenders-generate files specified by appenders only in first usage

2009-06-24 Thread inosh
Yea. Thanks for replying. Bender Heri wrote: > > You cannot do this by configuration. > What is the problem of having empty log files? > Heri > > -Ursprüngliche Nachricht- > Von: inosh [mailto:inosh...@gmail.com] > Gesendet: Mittwoch, 24. Juni 2009 10:59 > An: log4j-user@logging.apach

RE: High CPU usage impact to log4j

2009-06-24 Thread Matt Brown
I believe with JDK5 you can use jconsole, which is very similar to VisualVM and has most of the same sort of features. Perhaps that will help in the future. From: Arica [xun...@263.net] Sent: Wednesday, June 24, 2009 10:39 PM To: log4j-user@logging.apache.

Re: High CPU usage impact to log4j

2009-06-24 Thread Arica
Hi, Andersen Thanks for your suggestions. The Visual VM is quite powerful tool, but introduced from JDK6. My issue was happened at JDK5:( Besides, before add some algorithm to dump the JVM snapshot, I need to understand what's the root cause to result in the abnormal behavior of log4j. The most

AW: - Log4j File appenders-generate files specified by appenders only in first usage

2009-06-24 Thread Bender Heri
You cannot do this by configuration. What is the problem of having empty log files? Heri -Ursprüngliche Nachricht- Von: inosh [mailto:inosh...@gmail.com] Gesendet: Mittwoch, 24. Juni 2009 10:59 An: log4j-user@logging.apache.org Betreff: [SPAM (Keyword Checking)] - Log4j File appenders-gen

Re: High CPU usage impact to log4j

2009-06-24 Thread Thorbjørn Ravn Andersen
Arica skrev den 24-06-2009 08:22: 90% CPU usage. I really want to know that my JVM is doing...I know I can do hanks. Attach to the JVM with jvisualvm (available in the Java 6 JDK) -- Thorbjørn Ravn Andersen "...plus... Tubular Bells!"

Log4j File appenders-generate files specified by appenders only in first usage

2009-06-24 Thread inosh
Hi All, I'm little bit new to log4j. I have used log4j xml to configure file appenders and loggers. But i want to take some control over those appender file creation. All the files specified in fileAppenders are generating when loading log4j.xml. What i want is to generate those files only when t

Re: High CPU usage impact to log4j

2009-06-24 Thread Arica
Hi, all Please just ignore what I have said. I've retested the case again, the log4j did output logs even the resided JVM took more than 95% CPU. (I use infinite loop to make the JVM to takes most CPU of the OS) In fact, our application deploys total 7 JVMs. When the issue reported by our custo

Re: High CPU usage impact to log4j

2009-06-24 Thread Yair Ogen
Did you try running log4j with debug and see it reveals anything? use -Dlog4j.debug=true On Wed, Jun 24, 2009 at 10:30 AM, Arica wrote: > > Hi, Allen > > I added some threads to do the infinite loop in my source codes for > testing, > the CPU went to very high because of the inifinite loop. I tr

Re: High CPU usage impact to log4j

2009-06-24 Thread Arica
Hi, Allen I added some threads to do the infinite loop in my source codes for testing, the CPU went to very high because of the inifinite loop. I tried "kill -3 " to dump the JVM thread, but no response. I checked the log file, still no any out put. That's why I doubt that maybe the priority of l

Re: High CPU usage impact to log4j

2009-06-24 Thread Allen
I am doubting if you are on the right path tracking the real problem. On Wed, Jun 24, 2009 at 4:22 PM, Arica wrote: > > Hi, buddies > > I deployed the log4j as the logging tool of my JVM. Recently, I found that > the log4j does not work, I could not find any log output when the JVM > encounter