From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 29 20:30:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B605716A41F for ; Sat, 29 Oct 2005 20:30:07 +0000 (GMT) (envelope-from baguagrover@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ADA143D46 for ; Sat, 29 Oct 2005 20:30:07 +0000 (GMT) (envelope-from baguagrover@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so588049wxc for ; Sat, 29 Oct 2005 13:30:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=r9u6v3NJ1Wt4Agm0btC26KZycYGZaUzo5dyzxje4LBNfubL11ZyW4zokc80rxK8Bd6or8jFsqitgESNLEsUYMuP40CILMfeN4m6AdExp0ILWi9s4O6a1wKCSV1342ESLeHTYIV3FZoOWGrtKIewdA5CfNIdEFtXvev5gAQD/LHI= Received: by 10.70.131.6 with SMTP id e6mr969603wxd; Sat, 29 Oct 2005 13:23:51 -0700 (PDT) Received: by 10.65.177.13 with HTTP; Sat, 29 Oct 2005 13:23:21 -0700 (PDT) Message-ID: <729088040510291323i192edabemba596b45e7b029fa@mail.gmail.com> Date: Sat, 29 Oct 2005 13:23:21 -0700 From: grover mitchell To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 30 Oct 2005 13:12:00 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: monitoring resident memory of a process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 20:30:07 -0000 I am trying to monitor the resident memory size of some apache processes to find out what the memory footprint is like. I was planning on using the per= l Proc::ProcessTable module, but it seems to be lacking information: uid: 0 gid: 0 pid: 78297 ppid: 78296 pgrp: 78297 sess: 78297 flags: sldr utime: 10.000000 stime: 12.000000 time: 22.000000 wchan: select start: 1129576848.000000 euid: 0 egid: 0 fname: apache state: select ttydev: ttynum: -1 cmndline: /usr/local/sbin/apache priority: 0 If I run the same script on a linux box, I get a table field called rss and size, which is exactly what I am looking for here. The system is FreeBSD 4.10. Any pointers would be great. Thanks!