From owner-freebsd-threads@FreeBSD.ORG Fri Sep 12 17:15:55 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5284D1065672 for ; Fri, 12 Sep 2008 17:15:55 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 440438FC14 for ; Fri, 12 Sep 2008 17:15:55 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 0FBF31A3C38; Fri, 12 Sep 2008 09:58:09 -0700 (PDT) Date: Fri, 12 Sep 2008 09:58:09 -0700 From: Alfred Perlstein To: Ivan Voras Message-ID: <20080912165808.GE16977@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-threads@freebsd.org Subject: Re: Apache-worker stuck at 100% CPU X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 17:15:55 -0000 * Ivan Voras [080912 04:09] wrote: > Hi, > > I'm running apache2.2.9-worker without mod_php (with mod_fcgid and PHP > as FastCGI) and a process or a thread repeatedly gets stuck: > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 5503 www 41 96 0 50820K 30960K umtxn 0 722:42 99.32% httpd > > It doesn't use sys time and ktrace doesn't record anything. > > Any clues where to dig next? > > I'm not using any unusual modules for apache, and the same configuration > worked in 6.3 (this system was upgraded from 6.3 to 7.0-R - I checked > that all apache dependancies are compiled for 7.0). Try using "pstack" a few times. It's in ports. Also, gcore(1) might help. You can also try to attach using gdb. Basically, one of these tools should give you a stack trace which can help. It's interesting that the process is in "umtxn" though, is it multithreaded apache? Can you dump the threads? I think top(1) has an option to view each thread, how about trying that? thank you, -Alfred