Return-Path: X-Original-To: apmail-archiva-users-archive@www.apache.org Delivered-To: apmail-archiva-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 805B3112DE for ; Tue, 6 May 2014 02:17:22 +0000 (UTC) Received: (qmail 31969 invoked by uid 500); 6 May 2014 02:17:20 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 31921 invoked by uid 500); 6 May 2014 02:17:19 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 31912 invoked by uid 99); 6 May 2014 02:17:19 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 02:17:19 +0000 Received: from localhost (HELO mail-ob0-f182.google.com) (127.0.0.1) (smtp-auth username olamy, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 02:17:18 +0000 Received: by mail-ob0-f182.google.com with SMTP id wn1so4685384obc.13 for ; Mon, 05 May 2014 19:17:18 -0700 (PDT) X-Received: by 10.183.3.102 with SMTP id bv6mr35776428obd.18.1399342638269; Mon, 05 May 2014 19:17:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.118.103 with HTTP; Mon, 5 May 2014 19:16:58 -0700 (PDT) In-Reply-To: References: From: Olivier Lamy Date: Tue, 6 May 2014 12:16:58 +1000 Message-ID: Subject: Re: 2.0.1 with high cpu usage while idle To: users@archiva.apache.org Content-Type: text/plain; charset=UTF-8 I will remove the per default Async logging in 2.1.0 See http://jira.codehaus.org/browse/MRM-1842 On 3 May 2014 03:36, Miguel Almeida wrote: > I wanted to clarify my last email - > http://logging.apache.org/log4j/2.x/manual/async.html explains the > advantages of async loggers. But it seems to me that there's a huge CPU > load associated with it (which is not documented there). > I haven't used log4j's async logging before - is there some optimisation > missing in archiva, or is such a high load really expected? > > Miguel > > > On Fri, May 2, 2014 at 6:21 PM, Miguel Almeida wrote: > >> The provided link doesn't offer much information on the difference between >> the different AsyncLogger.WaitStrategy strategies. >> What are the pros and cons of the different options? >> >> I was already using 1.4-M4 and noticing constant high cpu loads (15% CPU >> usage even on idle periods). >> >> Cheers, >> >> Miguel >> >> >> On Fri, May 2, 2014 at 12:06 PM, Miguel Almeida > > wrote: >> >>> Original URL provided by Oliver is broken. Link should point to >>> http://archiva.apache.org/docs/2.0.1/adminguide/logging.html >>> >>> >>> On Thu, Apr 10, 2014 at 7:11 PM, Allen Lee wrote: >>> >>>> Changing the wait strategy to Block in wrapper.conf fixed it for me. >>>> Thanks Olivier! >>>> >>>> On Wed, Apr 9, 2014 at 5:31 PM, Olivier Lamy wrote: >>>> > Maybe because of the async logging from log4j2 (using disruptor). >>>> > Have a look here: >>>> > http://archiva.apache.org/docs/2.0.2-SNAPSHOT/adminguide/logging.html >>>> > >>>> > HTH >>>> > -- >>>> > Olivier >>>> > >>>> > On 10 April 2014 05:07, Allen Lee wrote: >>>> >> I upgraded from Archiva 1.3 to Archiva 2.0.1 recently and noticed that >>>> >> archiva's CPU usage is consistently high, around 80-85%. I reniced the >>>> >> process and now it's ranging from 15-85% of CPU, on average around >>>> >> 40-50%. At first I thought it might have been the initial startup >>>> >> costs of rescanning repositories but it has remained this way after >>>> >> several days now. >>>> >> >>>> >> The admin system status page doesn't report anything untoward (no >>>> >> repository scans happening, etc.). Any suggestions on how to fix this, >>>> >> and is this something others have noticed as well? >>>> >> >>>> >> Thanks in advance! >>>> >> >>>> >> -- >>>> >> Allen Lee >>>> >> Center for the Study of Institutional Diversity [http://csid.asu.edu] >>>> >> School of Human Evolution and Social Change [http://shesc.asu.edu] >>>> >> College of Liberal Arts and Sciences >>>> >> Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 >>>> >> 480.727.0401 | Fax: 480.965.7671 | e-mail: allen.lee@asu.edu >>>> > >>>> > >>>> > >>>> > -- >>>> > Olivier Lamy >>>> > Ecetera: http://ecetera.com.au >>>> > http://twitter.com/olamy | http://linkedin.com/in/olamy >>>> >>>> >>>> >>>> -- >>>> Allen Lee >>>> Center for the Study of Institutional Diversity [http://csid.asu.edu] >>>> School of Human Evolution and Social Change [http://shesc.asu.edu] >>>> College of Liberal Arts and Sciences >>>> Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 >>>> 480.727.0401 | Fax: 480.965.7671 | e-mail: allen.lee@asu.edu >>>> >>> >>> >> -- Olivier Lamy Ecetera: http://ecetera.com.au http://twitter.com/olamy | http://linkedin.com/in/olamy