Date: Wed, 26 Aug 2009 12:23:59 -0400 From: Alex Goncharov <alex-goncharov@comcast.net> To: Dag-Erling Smørgrav <des@des.no> Cc: freebsd-hackers@freebsd.org, kientzle@freebsd.org Subject: Re: Deprecating ps(1)s -w switch Message-ID: <E1MgLHz-0001CG-Go@daland.home> In-Reply-To: <86hbvu64hg.fsf@ds4.des.no> (message from Dag-Erling Smørgrav on Wed, 26 Aug 2009 16:20:59 %2B0200) References: <20090825034054.2d57e733@dev.lan.Awfulhak.org> <20090825134447.GM2829@hoeg.nl> <200908251609.09302.j.mckeown@ru.ac.za> <4A9407D3.60006@freebsd.org> <86hbvu64hg.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
,--- You/Dag-Erling (Wed, 26 Aug 2009 16:20:59 +0200) ----* | Tim Kientzle <kientzle@freebsd.org> writes: | > The difference between "ps", "ps -w", and "ps -ww" is pretty | > significant for Java, in particular. Java command lines | > are typically enormous (thank you, CLASSPATH) which makes | > "ps -ww" often more annoying than it's worth. | | Java command lines aren't necessarily enormous. If they are, it is | because whoever invoked Java didn't know that it respects the CLASSPATH | environment variable, and that setting -classpath on the command line | f*s up the user's preferences (e.g. the user may want to replace a | particular set of classes with an alternative implementation). Using either the `-classpath' option to `java' or `CLASSPATH' environment variable is a pretty obsolete practice (whoever does either these days, should stop and re-think, IMHO.) The deficiency of the above, in either variation, is the need to list every `jar' file used, which gets ugly with more than a few files. A persons who keeps up with modern Java will call it with one or several of the options: -Djava.ext.dirs -Djava.library.path -Djava.endorsed.dirs Java Virtual Machine will internally list the files in each of the directories (specified on the command line or default ones), saving a user the effort to mention them explicitly in `CLASSPATH'. This cuts on the length of the command line dramatically, but still `java' processes' command lines are typically enormously long: even the lists of the directories, with their absolute paths are significant; on top of it, `java' is usually invoked with a gazillion of options modifying JVM's runtime behaviour. It's a fact of life that for real-life applications, `java' command lines are *long* -- you can't change that by moving from `-classpath' to `CLASSPATH'. (This said, I am not in favor of modifying `ps' in the manner proposed, as my previous message indicated.) -- Alex -- alex-goncharov@comcast.net --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1MgLHz-0001CG-Go>