From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 18:24:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 291991065688 for ; Mon, 2 Mar 2009 18:24:03 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id AFDEE8FC21 for ; Mon, 2 Mar 2009 18:24:02 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so835657fgb.35 for ; Mon, 02 Mar 2009 10:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=BqjEqjF626odCXhzHUzr8uXo+XIg+43JBIJ/ZpaqQyE=; b=H1p1TzTnu0aK8QHeKR7EfXYShn/dCOa+4ezTVo5UaVEzN0adqa4V1N7WjeDcbeUWwi U6tJvqxa7eKW7ne9b8bxGMDumOF6AKyV3ucOpf5kYtZF4bKZTi33ozhqtnRyIdzlsuIp wTGosBKmZNqjFG/k81UpN+MrFS6sGcKtX2MLs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SG7hM/4QctFIB1aUrSMcS/rBVcfu+oQ5Aco7DnPHP+CcqUUsAlKJ3jNhFCr6KO9+F4 Qd6wpFEUxDHXqd6sSKuOigIcX3mRToK1TBpcltfE0pssex3FDH+yOuokAj0fatlbE0O1 OVv45hDg6a6PcwfsnPd4S0Gd4xD7fJnDI05Ac= MIME-Version: 1.0 Received: by 10.86.53.8 with SMTP id b8mr6992645fga.58.1236018241589; Mon, 02 Mar 2009 10:24:01 -0800 (PST) Date: Mon, 2 Mar 2009 19:24:01 +0100 Message-ID: <94136a2c0903021024q54225574hc36661eaa29a057@mail.gmail.com> From: Zbigniew Szalbot To: User Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: load average and some built-in monitoring mechanism X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 18:24:03 -0000 Hi there, My machine has recently been taken down by (most likely) runaway java process. The box had to be rebooted as there was no remote access to it but I am not able to find anything useful in logs to confirm whether it was java. Is there a tool that would enable me to automatically turn on verbose logging of top processes to some file once the load average is greater than the specified value? This way, once the storm is over, I would be able to see which process(es) went nuts. I guess a tool like that may simply already exist in which case I'd appreciate links/more information. How are you dealing with such issues when/if they happen to you? Many thanks! -- Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl