Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 62576 invoked from network); 24 Jun 2009 08:25:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 08:25:37 -0000 Received: (qmail 79520 invoked by uid 500); 24 Jun 2009 08:25:47 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 79454 invoked by uid 500); 24 Jun 2009 08:25:46 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 79443 invoked by uid 99); 24 Jun 2009 08:25:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 08:25:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 08:25:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MJNn9-00076N-BQ for log4j-user@logging.apache.org; Wed, 24 Jun 2009 01:25:15 -0700 Message-ID: <24180625.post@talk.nabble.com> Date: Wed, 24 Jun 2009 01:25:15 -0700 (PDT) From: Arica To: log4j-user@logging.apache.org Subject: Re: High CPU usage impact to log4j In-Reply-To: <24179322.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: xun007@263.net References: <24179322.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 customer, I found that one of 7 JVMs took more than 90% CPU. After checking all debug logs, only the JVM with more than 90% CPU usage did not have any logs output...the other 6 worked well...the overal OS CPU idle is 0...that's why I suspected at the very begining that the high CPU usage is the root cause to make log4j not work. Rignt now, I'm wondering...that why my own simulation cannot reproduce the issue? It seems that the high CPU usage of JVM is not the real root cause of the problem...so...do you have any hints about the "not log output" issue of log4j? I'm quite frustrated... Any suggestions or tips would be appreciated. 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 > encountered the high CPU usage issue. In the case, the JVM took more than > 90% CPU usage. I really want to know that my JVM is doing...I know I can > do it through JVM thread dump. But the question is why log4j does not > output any logs? I cannot find any warning from the guild to state that > log4j will lose logs during the CPU penic. > > Do you have any idea about that? Or does log4j define any threshold of CPU > usage? > > Thanks. > -- View this message in context: http://www.nabble.com/High-CPU-usage-impact-to-log4j-tp24179322p24180625.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org