From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 21 11:06:44 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EEA31065784 for ; Wed, 21 Jan 2009 11:06:44 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5A28FC13 for ; Wed, 21 Jan 2009 11:06:44 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id D8C1846B09; Wed, 21 Jan 2009 06:06:43 -0500 (EST) Date: Wed, 21 Jan 2009 11:06:43 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Danny Braniss In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: ps acting weird? 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: Wed, 21 Jan 2009 11:06:45 -0000 On Wed, 21 Jan 2009, Danny Braniss wrote: > thanks Robert, it is always educational to read your answers! > > i have set kern.ps_arg_cache_limit, as you suggested to 4k, but i think 512 > would have been enough (excluding those pathological cases of 'command *') > btw, this tomcat/java command line was 312 (why not use a config file!). > > which brings on another issue: > > ps -o command= -p 777 > /usr/local/diablo-jdk1.6.0/bin/java -Djava.endorsed.dirs= -classpath [...] > while > ps -o comm= -p 777 > java ps distinguishes "comm", which is the binary name as stored in the process structure's p_comm field, and the command line, which is p_args. From the ps(1) man page: KEYWORDS The following is a complete list of the available keywords and their meanings. Several of them have aliases (keywords which are synonyms). ... comm command command command and arguments Robert N M Watson Computer Laboratory University of Cambridge