From owner-freebsd-current@FreeBSD.ORG Wed Jun 8 09:23:15 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA39716A41C for ; Wed, 8 Jun 2005 09:23:15 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DC9343D48 for ; Wed, 8 Jun 2005 09:23:15 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so226708nzk for ; Wed, 08 Jun 2005 02:23:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nCZBo0vDoM85QcWZI1svYzWjUuv/vtqWiXmFG6A9odWEuoAt/lb7/lNJpStqep52cnSOYeAC8jBchw4BnSjk0eigpP7aWLq+oHbYBxwGDr+5HfijWqe1/JMGcjBonQb9bOAXi7P41g/z/MuODplnpyH74rDVawRb1huNucIWOz4= Received: by 10.36.33.3 with SMTP id g3mr1820753nzg; Wed, 08 Jun 2005 02:23:14 -0700 (PDT) Received: by 10.36.88.8 with HTTP; Wed, 8 Jun 2005 02:23:14 -0700 (PDT) Message-ID: Date: Wed, 8 Jun 2005 17:23:14 +0800 From: Jiawei Ye To: Peter Jeremy In-Reply-To: <20050608091603.GG39114@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050608091603.GG39114@cirb503493.alcatel.com.au> Cc: freebsd-current@freebsd.org Subject: Re: unkillable apache httpd process X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jiawei Ye List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 09:23:15 -0000 On 6/8/05, Peter Jeremy wrote: > On Wed, 2005-Jun-08 15:52:43 +0800, Jiawei Ye wrote: > >I have a problem with very recent -current. Apache2 when restarted via > >/usr/local/etc/rc.d/apache2.sh, the httpd process becomes unkillable > >and consumes quite some CPU cycles. > What does ps show? For a process to be unkillable, it must be in PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 3794 root 1 77 0 8008K 5572K RUN 0:03 2.29% httpd I think it's doing something but truss does not show what exactly it's doing. This is a P3-1.3G, terminal state of the httpd consumes about 10% in WCPU column. > the kernel, though it seems unusual for a process to be both using > CPU cycles and unkillable. >=20 > Probably not relevant but was apache built on the same version of > -current, an older version of -current or -stable? >=20 > -- > Peter Jeremy I just rebuilt it to make sure that it happens consistently (and it does). Any recent threading changes that might affect this? My www/apache2 is built with the following flags: 'WITH_CUSTOM_PROXY=3D"proxy proxy_http" WITH_MPM=3Dworker WITH_KQUEUE_SUPPORT=3Dyes WITH_THREADS=3Dyes WITH_BERKELEYDB=3Ddb42 WITH_KQUEUE_SUPPORT=3Dyes WITH_SUEXEC=3Dyes' Jiawei --=20 "Without the userland, the kernel is useless." --inspired by The Tao of Programming